}
}
public static WebApplicationContext configureWebApplicationContext(final ServletContext servletContext, WebApplicationContext parent) {
Holders.setServletContext(servletContext);
Holders.addApplicationDiscoveryStrategy(new ServletEnvironmentGrailsApplicationDiscoveryStrategy(servletContext));
GrailsApplication application = (GrailsApplication)parent.getBean(GrailsApplication.APPLICATION_ID);
if (LOG.isDebugEnabled()) {
LOG.debug("[GrailsContextLoader] Configuring Grails Application");
}