{
super.setWebAppContext(context);
//set up our special ServletHandler to remember injections and lifecycle callbacks
ServletHandler servletHandler = new ServletHandler();
SecurityHandler securityHandler = getWebAppContext().getSecurityHandler();
org.mortbay.jetty.servlet.ServletHandler existingHandler = getWebAppContext().getServletHandler();
servletHandler.setFilterMappings(existingHandler.getFilterMappings());
servletHandler.setFilters(existingHandler.getFilters());
servletHandler.setServlets(existingHandler.getServlets());
servletHandler.setServletMappings(existingHandler.getServletMappings());
getWebAppContext().setServletHandler(servletHandler);
securityHandler.setHandler(servletHandler);
}