{
CountDownLatch latch = this.latchRef.get();
if (latch != null)
{
TimePeriod timeout = LifecycleRegistry.this.factory.getTimeout();
try
{
if (!latch.await(timeout.getValue(), timeout.getUnit()))
{
throw LifecycleRegistry.this.exceptionFactory.createException(new TimeoutException());
}
}
catch (InterruptedException e)