code: public static ExecutableScript getScriptFromResource(String language, String resource, ScriptFactory scriptFactory) {
      ensureNotEmpty(NotValidException.class, "Script language", language);
      ensureNotEmpty(NotValidException.class, "Script resource", resource);
      return scriptFactory.createScriptFromResource(language, resource);
    }
docs: Creates a new {@link ExecutableScript} from a static resource.
  
  @param language the language of the script
  @param resource the resource path of the script code
  @param scriptFactory the script factory used to create the script
  @return the newly created script
  @throws NotValidException if language or resource are null or empty