public void contextDestroyed(ServletContextEvent event) {
XmlWebApplicationContext context = (XmlWebApplicationContext)WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());
if (context != null) {
context.stop();
context.destroy();
}
// do nothing, since the context is destroyed anyway
}
private static String getWebconsoleType() {