public Object eval(@NonNull Resource script) throws ScriptException, IOException {
    String fileText = script.readToString();
    return eval(fileText, null);
  }
public Object eval ( @ NonNull Resource script ) throws ScriptException , IOException { String fileText = script . readToString ( ) ; return eval ( fileText , null ) ; }
<p> Evaluates a script contained in the file. The encoding of the file is expected to be UTF-8. </p>

@param script - The resource containing the script
@return The result of evaluating the script
@throws javax.script.ScriptException Something went wrong
@throws java.io.IOException     Something went wrong reading the file