@Override
 public void contextInitialized(ServletContextEvent sce) {
   super.contextInitialized(sce);
   ServerContainer sc =
       (ServerContainer)
           sce.getServletContext()
               .getAttribute(Constants.SERVER_CONTAINER_SERVLET_CONTEXT_ATTRIBUTE);
   try {
     sc.addEndpoint(Endpoint.class);
   } catch (DeploymentException e) {
     throw new IllegalStateException(e);
   }
 }
 @Override
 public void contextInitialized(ServletContextEvent sce) {
   super.contextInitialized(sce);
   ServerContainer sc =
       (ServerContainer)
           sce.getServletContext()
               .getAttribute(Constants.SERVER_CONTAINER_SERVLET_CONTEXT_ATTRIBUTE);
   try {
     sc.addEndpoint(ServerEndpointConfig.Builder.create(ConstantTxEndpoint.class, PATH).build());
     if (TestWsWebSocketContainer.timoutOnContainer) {
       sc.setAsyncSendTimeout(TIMEOUT_MS);
     }
   } catch (DeploymentException e) {
     throw new IllegalStateException(e);
   }
 }