private ACLProvider instantiateModule(String name,
Map<String,Object> map)
throws PrivilegedActionException
{
ACLProvider am = null;
ClassLoader tcl = SecurityActions.getContextClassLoader();
try
{
Class<?> clazz = tcl.loadClass(name);
am = (ACLProvider)clazz.newInstance();
}
catch ( Exception e)
{
log.debug("Error instantiating AuthorizationModule:",e);
}
if(am == null)
throw new IllegalStateException("ACLProvider has not " +
"been instantiated");
am.initialize(this.sharedState,map);
return am;
}