how to pass .saveas variables into java calling function

Hi ALL,

In scala file i am calling one java method (HmacUtil.encDts) which accepts two variables data type for both are string.

Example simulation is:

val feederHMac = Iterator.continually(Map(“hmackey” → (HmacUtil.encDts(timeinsec,cpCustID))))

These variable values are outcome of one of the api that is

.check(jsonPath("$.CUResponseMessage.cpCustID").saveAs(“cpCustID”))

My problem is :

when trying to send the value for the function getting error like
“not found: value cpCustID”

can any one please help me how to pass the variable in java calling method…

Thanks in advance…