Code example for SimpleBindings

0
        return null; 
    } 
 
    public Object run(Bindings args) throws Exception {
        if (args == null) {
            args = new SimpleBindings();
        } 
        ScriptContext ctx = new SimpleScriptContext();
        ctx.setBindings(args, ScriptContext.ENGINE_SCOPE);
        Object result = null; 
        if (!trackChanges && script != null) {
            result = script.eval(ctx);
        } else { 
            result = getCompiledScript().eval(ctx);
        } 
        return result; 
    } 
 
    public CompiledScript getCompiledScript() throws ScriptException {
        try {