@SuppressWarnings("unchecked") private static void loadExtensions(final ClassLoader classLoader){
  for (  final Map.Entry<Class,Set<Class>> entry : definitionMap.entrySet()) {
    final ServiceLoader<?> serviceLoader=ServiceLoader.load(entry.getKey(),classLoader);
    for (    final Object o : serviceLoader) {
      registerServiceClass(o.getClass(),extensionClassloaderLookup,classLoader,entry.getValue());
    }
  }
}

@ SuppressWarnings ( "unchecked" ) private static void loadExtensions ( final ClassLoader classLoader ) { for ( final Map . Entry < Class , Set < Class > > entry : definitionMap . entrySet ( ) ) { final ServiceLoader < ? > serviceLoader = ServiceLoader . load ( entry . getKey ( ) , classLoader ) ; for ( final Object o : serviceLoader ) { registerServiceClass ( o . getClass ( ) , extensionClassloaderLookup , classLoader , entry . getValue ( ) ) ; } } }
loads extensions from the specified class loader .
