public Object eval(String script, ScriptContext context) throws ScriptException {
if(context != null) {
Bindings bindings = context.getBindings(ScriptContext.ENGINE_SCOPE);
if(bindings != null) {
for(Map.Entry<String, Object> entry : bindings.entrySet()) {
assignArg(entry.getKey(), entry.getValue());
}
}
}
try {