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