public void ensureLock(Identity oid, Transaction tx, int lock,
PersistenceBroker pb)
throws LockingException
{
LockMap lockMap = tx.getKit().getLockMap();
ObjectLock objectLock = lockMap.getLock(oid);
TransactionIsolation isolation;
isolation = IsolationFactory.getIsolationLevel(pb, objectLock);
if (lock == LockType.READ_LOCK)