ExpressionEngine engine = ExpressionEngineFactory.getEngine(ExpressionEngineFactory.ENGINE_TMLSCRIPT);
Map params = new HashMap();
params.put(RhinoExpressionEngine.PARAM_SCRIPTNAME, "HDBModel event module '" + event.getDb().getWrappedDB().getDbReference() + "/" + _moduleName + "', event " + event.getType());
ExpressionResult result = engine.evaluateExpression(scriptCode.toString(), retrieveContext(event), RhinoExpressionEngine.TYPE_SCRIPT, params);
if (result.isError()) {
if (result.getException().getCause() != null) {
throw result.getException().getCause();
}
else {