code: public ScriptEnvironment getEnvironmentForExtension(String extension) {
        Preconditions.checkArgument(StringUtils.isNotNullOrBlank(extension), "Extension name cannot be null or empty");
        return getEnvironment(getEnvironmentNameForExtension(extension));
     }
docs: Gets the scripting environment given the script extension.
  
  @param extension the scripting environment extension
  @return the scripting environment