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);
lifecycleChain = (AbstractImmutableHandler) next;
webAppContext.setHandler(next);