code: @Override
      public Session connectToServer(Endpoint endpoint, ClientEndpointConfig endpointConfig, URI path) throws DeploymentException, IOException {
  
          if (endpoint == null || path == null) {
              throw new IllegalArgumentException();
          }
          ClientConnector x = new ClientConnector();
          return x.connectClass(endpoint, path, endpointConfig, this);
      }
docs: /*
  (non-Javadoc)
  
  @see javax.websocket.WebSocketContainer#connectToServer(javax.websocket.Endpoint, javax.websocket.ClientEndpointConfig, java.net.URI)