// Now reset the Controller invocation context
ControllerInstrumentation.stopActionCall();
storeOrRestoreDataStateForContinuations( true );
} else {
throw new UnexpectedException("Lost promise for " + Http.Request.current() + "!");
}
if(future.isDone()) {
try {
return future.get();
} catch(Exception e) {
throw new UnexpectedException(e);
}
} else {
Request.current().isNew = false;
storeOrRestoreDataStateForContinuations( false );
Continuation.suspend(future);