// if nothing works, alas, the result is null
return null;
}
private Assignment resolveViaConversion(Type sourceType, Type targetType) {
ConversionProvider conversionProvider = conversions.getConversion( sourceType, targetType );
if ( conversionProvider == null ) {
return null;
}
ConversionContext ctx =
new DefaultConversionContext( typeFactory, targetType, dateFormat );
return conversionProvider.to( ctx );
}