WebAppContext ctx = new WebAppContext();
ctx.setContextPath( "/" );
File base = getBase();
ctx.setWar( base.getAbsolutePath() );
ctx.addHandler( sh );
ctx.getServletHandler().addServletWithMapping( TimingServlet.class, "/slow/*" );
ctx.getServletHandler().addServletWithMapping( InfiniteRedirectionServlet.class, "/redirect-trap/*" );
SessionHandler sessionHandler = ctx.getSessionHandler();