UserManager um = UserManager.getInstance();
userPropertyHandlers = um.getUserPropertyHandlersFor(USERPROPERTIES_FORM_IDENTIFYER, false);
// Add all available user fields to this form
for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
if (userPropertyHandler == null) continue;
FormElement ui = userPropertyHandler.getFormElement(getLocale(), null, USERPROPERTIES_FORM_IDENTIFYER, false);
addFormElement(userPropertyHandler.getName(), ui);
}
// second the user language
Map<String, String> languages = I18nManager.getInstance().getEnabledLanguagesTranslated();
StaticSingleSelectionElement singleSelection = new StaticSingleSelectionElement("user.language", StringHelper