code: private static void validateScriptType(ScriptWrapper script, String scriptType) throws IllegalArgumentException {
  		if (!scriptType.equals(script.getTypeName())) {
  			throw new IllegalArgumentException("Script " + script.getName() + " is not a '" + scriptType + "' script: "
  					+ script.getTypeName());
  		}
  	}
docs: Validates that the given {@code script} is of the given {@code scriptType}, throwing an {@code IllegalArgumentException}
  if not.
  
  @param script the script that will be checked, must not be {@code null}
  @param scriptType the expected type of the script, must not be {@code null}
  @throws IllegalArgumentException if the given {@code script} is not the given {@code scriptType}.
  @see ScriptWrapper#getTypeName()