// LOCK THE RECORD IF NEEDED
if (localLockingStrategy == OStorage.LOCKING_STRATEGY.KEEP_EXCLUSIVE_LOCK)
record.lock(true);
else if (localLockingStrategy == OStorage.LOCKING_STRATEGY.KEEP_SHARED_LOCK)
record.lock(false);
} else {
record = getDatabase().load(id.getIdentity(), null, false, false, localLockingStrategy);
if (id instanceof OContextualRecordId && ((OContextualRecordId) id).getContext() != null) {
Map<String, Object> ridContext = ((OContextualRecordId) id).getContext();