}
});
}
private void restoreUserFromServerSideSession(final Optional<AsyncCallback<UserDetails>> callback) {
DispatchServiceManager.get().execute(new GetCurrentUserInSessionAction(), new AsyncCallback<GetCurrentUserInSessionResult>() {
@Override
public void onFailure(Throwable caught) {
GWT.log("Problem getting user details for user " + userId, caught);
if(callback.isPresent()) {
callback.get().onFailure(caught);