// int pos = className.lastIndexOf( '.' );
// if ( pos > 0 )
// clsName = className.substring( pos + 1 );
XModel model = (XModel)currentProject.getModel().get( (String)instanceConfig.get( "source" ));
XDataBinding binding = null;
if ( ( className.indexOf( "XComboBox" ) > 0 ) && ( model instanceof DatabaseTableModel ) )
binding = new XListTableBinding();
else if (( className.indexOf( "XTable" ) > 0 ) || ( comp instanceof XModelHolder ))
binding = new XTableTableBinding();
else if ( ( comp instanceof XTextHolder ) && (( model instanceof DatabaseTableModel ) || ( model instanceof DatabaseRowModel ) || ( model instanceof DatabaseFieldModel )))
binding = new XTextTableBinding();
if ( binding != null )
binding.setup( currentProject, comp, null, instanceConfig );
return binding;
}