.setDeploymentName("servletContext.war")
.addServletContextAttribute(javax.websocket.server.ServerContainer.class.getName(), deployment)
.addFilter(new FilterInfo("filter", JsrWebSocketFilter.class))
.addFilterUrlMapping("filter", "/*", DispatcherType.REQUEST);
deployment.addEndpoint(new ServerEndpointConfigImpl(ProgramaticAutobahnEndpoint.class, "/"));
DeploymentManager manager = container.addDeployment(builder);
manager.deploy();