Debug.logVerbose("Evaluating -- " + expression, module);
if (Debug.verboseOn())
Debug.logVerbose("Using Context -- " + context, module);
try {
GroovyShell shell = new GroovyShell(getBinding(context));
o = shell.evaluate(expression);
if (Debug.verboseOn())
Debug.logVerbose("Evaluated to -- " + o, module);
// read back the context info
Binding binding = shell.getContext();
context.putAll(binding.getVariables());
} catch (CompilationFailedException e) {
Debug.logError(e, "Groovy Evaluation error.", module);
throw e;