user.setEmail(newEmail);
uiApp.addMessage(new ApplicationMessage("UIAccountProfiles.msg.update.success", null));
service.getUserHandler().saveUser(user, true);
UIWorkingWorkspace uiWorkingWS = Util.getUIPortalApplication().getChild(UIWorkingWorkspace.class);
ConversationState state = ConversationState.getCurrent();
if (userName.equals(((User)state.getAttribute(CacheUserProfileFilter.USER_PROFILE)).getUserName()))
{
state.setAttribute(CacheUserProfileFilter.USER_PROFILE, user);
uiWorkingWS.updatePortletsByName("UserInfoPortlet");
}
uiWorkingWS.updatePortletsByName("OrganizationPortlet");
}