private static boolean isDetectorEnabled(boolean forceEmbeddedJava) {
    return forceEmbeddedJava || Registry.is("java.detector.enabled", true);
  }
private static boolean isDetectorEnabled(boolean forceEmbeddedJava)