ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
context.setContextPath("/");
server.setHandler(context);
final ServletHolder servletHolder = new ServletHolder(new AbstractApplicationServlet() {
@Override
protected Application getNewApplication(HttpServletRequest request) throws ServletException {
return new SimulatorApplication();
}