// PERF: handle normal case faster.
if (this.lockMapping != null) {
this.lockMapping.setAttributeValueInObject(object, this.lockMapping.getAttributeValue(lockValue, session));
if (objectChangeSet != null) {
objectChangeSet.setWriteLockValue(lockValue);
objectChangeSet.updateChangeRecordForAttribute(this.lockMapping, lockValue, session);
}
} else {
// CR#3173211
// If the value is stored in the cache or object, there still may
// be read-only mappings for it, so the object must always be updated for