if(userId.isGuest()) {
MessageBox.showAlert("You must be logged in to change your email address");
return;
}
ProgressMonitor.get().showProgressMonitor("Retrieving email address", "Please wait.");
DispatchServiceManager.get().execute(new GetEmailAddressAction(userId), new AbstractWebProtegeAsyncCallback<GetEmailAddressResult>() {
@Override
public void onSuccess(GetEmailAddressResult result) {
showDialog(result.getEmailAddress());
ProgressMonitor.get().hideProgressMonitor();
}