*
* @param context The servlet context
*/
public static void setupContext(ServletContext context) {
ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);
LookupManager mgr = (LookupManager) ctx.getBean("lookupManager");
// get list of possible roles
context.setAttribute(Constants.AVAILABLE_ROLES, mgr.getAllRoles());
log.debug("Drop-down initialization complete [OK]");
// Any manager extending GenericManager will do:
GenericManager manager = (GenericManager) ctx.getBean("userManager");
doReindexing(manager);