dataTypeField = uiComponents.create(LookupField.NAME); Map<String, PropertyType> options = new TreeMap<>(); PropertyType[] types = PropertyType.values(); for (PropertyType propertyType : types) { options.put(getMessage(propertyType.toString()), propertyType);