public static class UnitBoxItemFactory implements FormItemFactory {
@Override
public ObservableFormItem[] makeFormItem(PropertyBinding propBinding, FormItemObserver... observers) {
UnitBoxItem<Long> unitBoxItem = new UnitBoxItem<Long>(propBinding.getJavaName(), propBinding.getLabel(), Long.class);
return new ObservableFormItem[] {new ObservableFormItem(propBinding, unitBoxItem, observers),
new ObservableFormItem(propBinding, unitBoxItem.getUnitItem(), observers)};
}