.setDeploymentName("servletContext.war")
.addListener(new ListenerInfo(SessionCookieConfigListener.class))
.addServlets(new ServletInfo("servlet", SessionServlet.class)
.addMapping("/aa/b"));
DeploymentManager manager = container.addDeployment(builder);
manager.deploy();
try {
pathHandler.addPrefixPath(builder.getContextPath(), manager.start());
} catch (ServletException e) {
throw new RuntimeException(e);
}