code: public boolean waitForConnectorFinished() throws InterruptedException {
          connectorStatusLock.lock();
          try {
              if (connectorStatus == ConnectorStatus.ConnectorSuccesful) {
                  return true;
              }
  
              return connectorSuccessfullyFinished.await(discoveryQos.getDiscoveryTimeoutMs(), TimeUnit.MILLISECONDS);
  
          } finally {
              connectorStatusLock.unlock();
          }
  
      }
docs: Checks the connector status before a method call is executed. Instantly returns True if the connector already
  finished successfully , otherwise it will block up to the amount of milliseconds defined by the
  arbitrationTimeout or until the ProxyInvocationHandler is notified about a successful connection.
  
  @return True if the connector was finished successfully in time, False if the connector failed or could not be
  finished in time.
  @throws InterruptedException in case thread is interrupted