DeploymentInfo builder = new DeploymentInfo();
final PathHandler root = new PathHandler();
final ServletContainer container = ServletContainer.Factory.newInstance();
builder.addServlet(new ServletInfo("/a/*", PathMappingServlet.class)
.addMapping("/a/*"));
builder.addServlet(new ServletInfo("/aa", PathMappingServlet.class)
.addMapping("/aa"));
builder.addServlet(new ServletInfo("/", PathMappingServlet.class)
.addMapping("/"));
builder.addServlet(new ServletInfo("contextRoot", PathMappingServlet.class)
.addMapping(""));
builder.addServlet(new ServletInfo("/myservlet/*", PathMappingServlet.class)
.addMapping("/myservlet/*"));
builder.addServlet(new ServletInfo("*.jsp", PathMappingServlet.class)
.addMapping("*.jsp"));
builder.addFilter(new FilterInfo("/*", PathFilter.class));
builder.addFilterUrlMapping("/*", "/*", DispatcherType.REQUEST);