}
return new ApplicationListeners(managedListeners, deployment.getServletContext());
}
private ServletChain servletChain(HttpHandler next, final ManagedServlet managedServlet) {
HttpHandler servletHandler = new ServletSecurityRoleHandler(next);
servletHandler = new SSLInformationAssociationHandler(servletHandler);
servletHandler = wrapHandlers(servletHandler, managedServlet.getServletInfo().getHandlerChainWrappers());
servletHandler = wrapHandlers(servletHandler, deployment.getDeploymentInfo().getDispatchedHandlerChainWrappers());
return new ServletChain(servletHandler, managedServlet);
}