code: void awaitStability(long timeout, TimeUnit timeUnit) throws InterruptedException, TimeoutException {
          if (!monitor.awaitStability(timeout, timeUnit, failed, problems)) {
              throw new TimeoutException();
          }
      }
docs: Await service container stability.
  
  @param timeout maximum period to wait for service container stability
  @param timeUnit unit in which {@code timeout} is expressed
  
  @throws java.lang.InterruptedException if the thread is interrupted while awaiting service container stability
  @throws java.util.concurrent.TimeoutException if service container stability is not reached before the specified timeout