public ObservableList createBoundListModel ( String formProperty ) { final ConfigurableFormModel formModel = ( ( ConfigurableFormModel ) getFormModel ( ) ) ; ValueModel valueModel = formModel . getValueModel ( formProperty ) ; if ( ! ( valueModel instanceof BufferedCollectionValueModel ) ) { // XXX: HACK! valueModel = new BufferedCollectionValueModel ( ( ( ( DefaultFormModel ) formModel ) . getFormObjectPropertyAccessStrategy ( ) ) . getPropertyValueModel ( formProperty ) , formModel . getFieldMetadata ( formProperty ) . getPropertyType ( ) ) ; formModel . add ( formProperty , valueModel ) ; } return ( ObservableList ) valueModel . getValue ( ) ; }
This method will most likely move over to FormModel