TypeConverter getDefaultTypeConverter ( Type toField , Type domainField ) { for ( TypeConverter typeConverter : typeConvertersInOrder ) { if ( typeConverter . canConvert ( toField , domainField ) ) { return typeConverter ; } } return new NoConversionTypeConverter ( ) ; // default to no type conversion }
Get the default type converter given the field types to convert between .