uiApp.addMessage(new ApplicationMessage("UIAccountProfiles.msg.update.success", null));
service.getUserHandler().saveUser(user, true);
state.setAttribute(CacheUserProfileFilter.USER_PROFILE, user);
UIWorkingWorkspace uiWorkingWS = Util.getUIPortalApplication().getChild(UIWorkingWorkspace.class);
uiWorkingWS.updatePortletsByName("UserInfoPortlet");
uiWorkingWS.updatePortletsByName("OrganizationPortlet");
} else {
JavascriptManager jsManager = Util.getPortalRequestContext().getJavascriptManager();
jsManager.require("SHARED/base").addScripts(
"if(confirm('"