ClassLoader loader = Thread.currentThread().getContextClassLoader();
Class c = loader.loadClass(getAuthorizationClass(securityName));
security = (Authorization) c.newInstance();
security.setDelegator(delegator);
} catch (ClassNotFoundException cnf) {
throw new SecurityConfigurationException("Cannot load security implementation class", cnf);
} catch (InstantiationException ie) {
throw new SecurityConfigurationException("Cannot get instance of the security implementation", ie);
} catch (IllegalAccessException iae) {
throw new SecurityConfigurationException(iae.getMessage(), iae);
}
}
if (Debug.verboseOn()) Debug.logVerbose("[AuthorizationFactory.getInstance] Security implementation successfully loaded!!!", module);