if (!initialized) {
if (factory.containsBean("scheduledModuleChangeMonitor")) {
logger.info("Registering " + getServletName() + " for module modifications");
ModuleChangeMonitor moduleChangeMonitor = (ModuleChangeMonitor) factory
.getBean("scheduledModuleChangeMonitor");
moduleChangeMonitor.addModificationListener(this);
}
this.initialized = true;
}
return (WebApplicationContext) context;