String expr = getExpression();
Object result;
if (expr != null) {
RhinoExpressionEngine engine = ExpressionEngineFactory.getTMLScriptEngine();
ExpressionResult exprResult = engine.evaluateExpression(expr, getTMLContext(), RhinoExpressionEngine.TYPE_EXPRESSION, null);
if (!exprResult.isError()) {
result = exprResult.getResult();
}
else {
addWarning("Error evaluation param expression: " + exprResult.getException().getClass() + exprResult.getException().getMessage(), true);