if (!this.isUserLoggedIn()) {
return null;
} else {
User user = this.userService.getCurrentUser();
boolean admin = this.isUserAdmin();
OpenIdProvider openIdProvider = deriveOpenIdProvider(user.getAuthDomain());
// Normally, I'd put a User constructor onto CurrentUser. That won't
// work, because then CurrentUser has a dependency on code which isn't
// translated and isn't available to GWT clients.