docs: private void addJavaScriptEngine(List<String> factoryCandidates) {
          // Add default script engine manager
          factoryCandidates.add(OSGiScriptEngineFactory.class.getName());
  
          // Rhino is available in java < 8, Nashorn is available in java >= 8
          if (ClassLoaderUtil.isClassDefined(RHINO_SCRIPT_ENGINE_FACTORY)) {
              factoryCandidates.add(RHINO_SCRIPT_ENGINE_FACTORY);
          } else if (ClassLoaderUtil.isClassDefined(NASHORN_SCRIPT_ENGINE_FACTORY)) {
              factoryCandidates.add(NASHORN_SCRIPT_ENGINE_FACTORY);
          } else {
              logger.warning("No built-in JavaScript ScriptEngineFactory found.");
          }
      }