public static <S>ServiceLoader<S> loadInstalled(Class<S> service){
  ClassLoader cl=ClassLoader.getSystemClassLoader();
  if (cl != null) {
    while (cl.getParent() != null) {
      cl=cl.getParent();
    }
  }
  return ServiceLoader.load(service,cl);
}

public static < S > ServiceLoader < S > loadInstalled ( Class < S > service ) { ClassLoader cl = ClassLoader . getSystemClassLoader ( ) ; if ( cl != null ) { while ( cl . getParent ( ) != null ) { cl = cl . getParent ( ) ; } } return ServiceLoader . load ( service , cl ) ; }
constructs a service loader , using the extension class loader .
