if (LOG.isTraceEnabled()) LOG.trace("Locking "
+ MessageHelper.infoString(persister, entry.getId(), source.getFactory())
+ " in mode: " + requestedLockMode);
final SoftLock lock;
final CacheKey ck;
if ( persister.hasCache() ) {
ck = source.generateCacheKey( entry.getId(), persister.getIdentifierType(), persister.getRootEntityName() );
lock = persister.getCacheAccessStrategy().lockItem( ck, entry.getVersion() );
}