PreHandler preHandler = null == preHandlerFactory ? null : preHandlerFactory.createHandler();
ServletHandler servletHandler = new JettyServletHandler(preHandler);
webAppContext = new WebAppContext(securityHandler, sessionHandler, servletHandler, null);
AbstractHandler next = sessionHandler;
next = new ThreadClassloaderHandler(next, classLoader);
GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
Context enc = EnterpriseNamingContext.createEnterpriseNamingContext(componentContext, userTransaction, kernel, classLoader);
next = new ComponentContextHandler(next, enc);
next = new InstanceContextHandler(next, unshareableResources, applicationManagedSecurityResources, trackedConnectionAssociator);