[CDA-15] Solved problem of assigning values ​​to parameters

Problem solved. Tests included

Please review

@pmalves 
Because "translateAndLookup" changes the variables to its values (i.e. @level="${level}" becomes @level="2"} in the original query.
For subsequents processings it is necessary to put the original value back.