class LifecycleController {

  public static boolean waitForOneOf(LifecycleAware delegate,
      LifecycleState[] states) throws InterruptedException {

    return waitForOneOf(delegate, states, 0);
  }

}