code: public Object eval(String script, ScriptContext context) throws ScriptException {
      if (StringUtils.isNullOrBlank(script)) {
        return null;
      }
      Object obj;
      if (context == null) {
        obj = engine.eval(script);
      } else {
        obj = engine.eval(script, context);
      }
      return obj;
    }
docs: <p> Evaluates a script using a specified context. Returns null if the script is null or empty  </p>
  
  @param script  The script as a string
  @param context - The ScriptContext passed to the script engine.
  @return The result of evaluating the script
  @throws javax.script.ScriptException Something went wrong