public static void setupContext(ServletContext context) {
ApplicationContext ctx =
WebApplicationContextUtils.getRequiredWebApplicationContext(context);
UserDao udao = (UserDao) ctx.getBean("userDao");
udao.refreshUsersCache();
LookupManager mgr = (LookupManager) ctx.getBean("lookupManager");