// Add the noneditable username field.
MultipleSelectionElement usernameCheckbox = uifactory.addCheckboxesHorizontal("checkbox_username", null, formLayout, new String[] {"checkbox_username"}, new String[] {""}, null);
usernameCheckbox.select("checkbox_username", true);
usernameCheckbox.setEnabled(false);
StaticTextElement usernameText = uifactory.addStaticTextElement("username", this.identity.getName(), formLayout);
usernameText.setMandatory(true);
this.formItems.put("username", usernameText);
String currentGroup = null;
List<UserPropertyHandler> homepagePropertyHanders = UserManager.getInstance().getUserPropertyHandlersFor(HomePageConfig.class.getCanonicalName(), isAdministrativeUser);
// show a form element for each property handler