final ExprEval exprEval = new ExprEval(replaceWithVars(context, expression));
if (scale != null) {
exprEval.setScale(Integer.parseInt(scale));
}
final Object result = exprEval.evaluate();
// set result variable
context.setVar(var, result);
// process child elements