try
{
// Evaluate the expression
scriptEngine.prepareNodeParamExecution(param);
Object value = scriptEngine.executeScript(expression, "exit parameter script", param.getQualifier().toString());
scriptEngine.finishNodeParamExecution(param);
// Assign the result to the parameter
TokenContextUtil.setParamValue(context, param, value);
}
finally