@SuppressWarnings("unchecked") public static void registerAtStart(String className){
  JavaUtils.checkRegisterPermission();
  try {
    Class<ResourceResolverSpi> resourceResolverClass=(Class<ResourceResolverSpi>)Class.forName(className);
    register(resourceResolverClass,true);
  }
 catch (  ClassNotFoundException e) {
    log.log(java.util.logging.Level.WARNING,"Error loading resolver " + className + " disabling it");
  }
}

@ SuppressWarnings ( "unchecked" ) public static void registerAtStart ( String className ) { JavaUtils . checkRegisterPermission ( ) ; try { Class < ResourceResolverSpi > resourceResolverClass = ( Class < ResourceResolverSpi > ) Class . forName ( className ) ; register ( resourceResolverClass , true ) ; } catch ( ClassNotFoundException e ) { log . log ( java . util . logging . Level . WARNING , "Error loading resolver " + className + " disabling it" ) ; } }
registers a resourceresolverspi class at the beginning of the provider list . this method logs a warning if the class cannot be registered .
