code: private void waitForComponentToComeUp() {
          LOGGER.entering();
          for (int i = 0; i < 60; i++) {
              try {
                  // Sleep for 3 seconds.
                  Thread.sleep(1000);
              } catch (InterruptedException e) {
                  throw new IllegalStateException(e.getMessage(), e);
              }
              if (getLauncher().isRunning()) {
                  LOGGER.exiting();
                  return;
              }
          }
          throw new IllegalStateException(String.format("%s can not be contacted.", getLocalServerComponent().getClass()
                  .getSimpleName()));
      }
docs: Checks component has come up every 3 seconds. Waits for the component for a maximum of 60 seconds. Throws an
  {@link IllegalStateException} if the component can not be contacted