FieldCollectorType collectorTypeForId = ClassLoadingStrategySelector.guessAppropriateCollectorType( idBridge );
if ( collectorTypeForId == null ) {
log.warn( "FieldCache was enabled on class " + this.beanClass + " but for this type of identifier we can't extract values from the FieldCache: cache disabled" );
return null;
}
TwoWayStringBridge twoWayIdStringBridge = ClassLoadingStrategySelector.getTwoWayStringBridge( idBridge );
return new FieldCacheCollectorFactory( getIdKeywordName(), collectorTypeForId, twoWayIdStringBridge );
}
return null;
}