code: public static void waitForDomain(final ModelControllerClient client, final long startupTimeout)
              throws InterruptedException, RuntimeException, TimeoutException {
          waitForDomain(null, client, startupTimeout);
      }
docs: Waits the given amount of time in seconds for a managed domain to start. A domain is considered started when each
  of the servers in the domain are started unless the server is disabled.
  
  @param client         the client used to communicate with the server
  @param startupTimeout the time, in seconds, to wait for the server start
  
  @throws InterruptedException if interrupted while waiting for the server to start
  @throws RuntimeException     if the process has died
  @throws TimeoutException     if the timeout has been reached and the server is still not started