}
// It would be so much nicer if the change set was keyed by the class instead of class name,
// so this could be done once. We should key on class, and only convert to keying on name when broadcasting changes.
ClassDescriptor descriptor = session.getDescriptor(objectClass);
// PERF: Do not merge nor lock into the session cache if descriptor set to unit of work isolated.
if (descriptor.shouldIsolateObjectsInUnitOfWork()) {
break;
}
CacheKey activeCacheKey = attemptToAcquireLock(objectClass, objectChangeSet.getCacheKey(), session);
if (activeCacheKey == null) {
//if cacheKey is null then the lock was not available