appContext = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());  if (appContext == null) { log.warn("Web application context is null. Will delay initialization until it's first used."); servletContext = event.getServletContext(); }
    public void contextInitialized(ServletContextEvent event) {        if (log.isDebugEnabled()) {            log.debug("Received ServletContextEvent: " + event);        }        appContext = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());        if (appContext == null) {            log.warn("Web application context is null. Will delay initialization until it's first used.");            servletContext = event.getServletContext();        }    }