code: public boolean connect(long timeout) {
      if (this.wmi.connect(timeout)) {
        this.wmi.setStayConnected(true);
  //      this.isReady = true;
        return true;
      }
      return false;
    }
docs: Connects to the world model at the configured host and port.
  
  @param timeout
  the maximum time to attempt the connection or 0 for the configured
  timeout
  
  @return {@code true} if the connection succeeds, else {@code false}.