public static void register(Class<? extends ResourceResolverSpi> className,boolean start){
  JavaUtils.checkRegisterPermission();
  try {
    ResourceResolverSpi resourceResolverSpi=className.newInstance();
    register(resourceResolverSpi,start);
  }
 catch (  IllegalAccessException e) {
    log.log(java.util.logging.Level.WARNING,"Error loading resolver " + className + " disabling it");
  }
catch (  InstantiationException e) {
    log.log(java.util.logging.Level.WARNING,"Error loading resolver " + className + " disabling it");
  }
}

public static void register ( Class < ? extends ResourceResolverSpi > className , boolean start ) { JavaUtils . checkRegisterPermission ( ) ; try { ResourceResolverSpi resourceResolverSpi = className . newInstance ( ) ; register ( resourceResolverSpi , start ) ; } catch ( IllegalAccessException e ) { log . log ( java . util . logging . Level . WARNING , "Error loading resolver " + className + " disabling it" ) ; } catch ( InstantiationException e ) { log . log ( java . util . logging . Level . WARNING , "Error loading resolver " + className + " disabling it" ) ; } }
registers a resourceresolverspi class . this method logs a warning if the class cannot be registered .
