ServletConfig config = this.getServletConfig();
String adminClass = config.getInitParameter("cowebAdminClass");
//Create the security policy. Default to CowebSecurityPolicy.
if(adminClass == null)
cowebAdmin = new AdminImpl();
else {
try {
Class<? extends Admin> clazz = Class.forName(adminClass).asSubclass(Admin.class);
cowebAdmin = (Admin)clazz.newInstance();
}
catch(Exception e) {
cowebAdmin = new AdminImpl();
}
}
}