/* */ }
/* */
/* */ private AuthorizationModule instantiateModule(String name, Map<String, Object> map)
/* */ throws PrivilegedActionException
/* */ {
/* 271 */ AuthorizationModule am = null;
/* 272 */ ClassLoader tcl = SecurityActions.getContextClassLoader();
/* */ try
/* */ {
/* 275 */ Class clazz = tcl.loadClass(name);
/* 276 */ am = (AuthorizationModule)clazz.newInstance();
/* */ }
/* */ catch (Exception e)
/* */ {
/* 280 */ log.debug("Error instantiating AuthorizationModule:", e);
/* */ }
/* 282 */ if (am == null) {
/* 283 */ throw new IllegalStateException("AuthorizationModule has not been instantiated");
/* */ }
/* 285 */ am.initialize(this.authenticatedSubject, this.callbackHandler, this.sharedState, map);
/* */
/* 287 */ return am;
/* */ }