Wrapper wrapper = context.createWrapper();
final String name = "rest_" + listener.hashCode();
wrapper.setName(name);
wrapper.setServletClass(RsServlet.class.getName());
context.addChild(wrapper);
wrapper.addMapping(removeWebContext(webContext, completePath));
context.addServletMapping(completePath, name);
final String listenerId = wrapper.getName() + RsServlet.class.getName() + listener.hashCode();
wrapper.addInitParameter(HttpListener.class.getName(), listenerId);