public class ClassLoadingStrategySelector {
public static FieldCacheLoadingType guessAppropriateCollectorType(TwoWayFieldBridge fieldBridge) {
if ( fieldBridge instanceof NullEncodingTwoWayFieldBridge ) {
NullEncodingTwoWayFieldBridge encoding = (NullEncodingTwoWayFieldBridge) fieldBridge;
return guessAppropriateCollectorType( encoding.unwrap() );
}
else if ( fieldBridge instanceof TwoWayString2FieldBridgeAdaptor ) {
return FieldCacheLoadingType.STRING;
}
else if ( fieldBridge instanceof IntegerNumericFieldBridge ) {