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