d.addMapping(waAnn.value());
// web socket
ServerContainer scon = (ServerContainer) sc.getAttribute("javax.websocket.server.ServerContainer");
assert scon!=null : "Container does not support websockets !!!";
for (String wsPath : waAnn.webSocketUrlPatterns()) {
try {
scon.addEndpoint(ServerEndpointConfig.Builder.create(WebActorEndpoint.class, wsPath).configurator(new EmbedHttpSessionWsConfigurator()).build());
} catch (DeploymentException ex) {
sc.log("Unable to deploy endpoint", ex);
}