@SuppressWarnings("deprecation") public void setUserProfile(String user) throws Exception { user_ = user; if (user == null) return; OrganizationService service = getApplicationComponent(OrganizationService.class); UserProfile userProfile = service.getUserProfileHandler().findUserProfileByName(user); if (userProfile == null) { userProfile = service.getUserProfileHandler().createUserProfileInstance(); userProfile.setUserName(user); } if (userProfile.getUserInfoMap() == null) return; for (UIComponent set : getChildren()) { UIFormInputSet inputSet = (UIFormInputSet)set; for (UIComponent uiComp : inputSet.getChildren()) { UIFormStringInput uiInput = (UIFormStringInput)uiComp; uiInput.setValue(userProfile.getAttribute(uiInput.getName())); } } }