OrganizationService service = uiForm.getApplicationComponent(OrganizationService.class);
WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
PortalRequestContext prContext = Util.getPortalRequestContext();
UIApplication uiApp = context.getUIApplication();
ConversationState state = ConversationState.getCurrent();
String userName = ((User) state.getAttribute(CacheUserProfileFilter.USER_PROFILE)).getUserName();
User user = service.getUserHandler().findUserByName(userName);
if (user != null) {
UserProfile userProfile = (UserProfile)prContext.getAttribute(UserProfileLifecycle.USER_PROFILE_ATTRIBUTE_NAME);