if (cld.isAcceptLocks())
{
if (lockMode == Transaction.READ)
{
if (log.isDebugEnabled()) log.debug("Do READ lock on object: " + oid);
if(!lm.readLock(this, oid, obj))
{
throw new LockNotGrantedException("Can not lock for READ: " + oid);
}
}
else if (lockMode == Transaction.WRITE)