private Object getScriptResult(String script, ScriptEngine engine) throws ScriptException {
        String scriptToExecute = script.substring(script.indexOf(":") + 1);
        return engine.eval(scriptToExecute);
    }
private Object getScriptResult ( String script , ScriptEngine engine ) throws ScriptException { String scriptToExecute = script . substring ( script . indexOf ( ":" ) + 1 ) ; return engine . eval ( scriptToExecute ) ; }
Evaluates the script expression

@return script expression result