public Property create(final FieldMetadata<Object, ?> fieldMetadata, String id, OneOf.Enum info) {
Class cls = fieldMetadata.getType();
Object[] items = cls.getEnumConstants();
UIDropdown dropdown = new UIDropdown();
dropdown.bindOptions(new DefaultBinding(Arrays.asList(items)));
Binding binding = new Binding() {
@Override
public Object get() {
return fieldMetadata.getValueChecked(target);
}