server.resumeAccepts();
final ServletContainer container = ServletContainer.Factory.newInstance();
ServerWebSocketContainer deployment = new ServerWebSocketContainer(TestClassIntrospector.INSTANCE, worker, new ByteBufferSlicePool(100, 1000), new CompositeThreadSetupAction(Collections.EMPTY_LIST), false);
DeploymentInfo builder = new DeploymentInfo()
.setClassLoader(AnnotatedAutobahnServer.class.getClassLoader())
.setContextPath("/")
.setClassIntrospecter(TestClassIntrospector.INSTANCE)
.setDeploymentName("servletContext.war")
.addServletContextAttribute(javax.websocket.server.ServerContainer.class.getName(), deployment)
.addFilter(new FilterInfo("filter", JsrWebSocketFilter.class))
.addFilterUrlMapping("filter", "/*", DispatcherType.REQUEST);
deployment.addEndpoint(AutobahnAnnotatedEndpoint.class);
DeploymentManager manager = container.addDeployment(builder);
manager.deploy();