class LifecycleController {

  public static boolean waitForState(LifecycleAware delegate,
      LifecycleState state) throws InterruptedException {

    return waitForState(delegate, state, 0);
  }

}