code: @Override
    public boolean service(RequestBaratine request)
    {
      /*
      try {
        _service.open((WebRequest) request);
      } catch (Exception e) {
        log.log(Level.WARNING, e.toString(), e);
      }
      */
  
      ServiceWebSocket<T, S> service = _factory.apply(request);
  
      WebSocketManager wsManager = request.webApp().wsManager();
      WebSocketBaratineImpl<T,S> ws
        = new WebSocketBaratineImpl<>(wsManager, service, _type);
      
      try {
        if (ws.handshake(request)) {
          return true;
        }
        else {
          log.fine("WebSocket handshake failed for " + request);
          return false;
        }
      } catch (Throwable e) {
        log.log(Level.WARNING, e.toString(), e);
        e.printStackTrace();
        
        request.fail(e);
        
        return true;
      }
      //request.flush();
    }
docs: Service a request.
  
  @param request the http request facade
  @param response the http response facade