code: public boolean tryLock(Object ownerId, Object resourceId, int targetLockLevel, boolean reentrant, Object isolationId)
      {
          timeoutCheck(ownerId);
  
          OJBLock lock = atomicGetOrCreateLock(resourceId, isolationId);
          boolean acquired = lock.tryLock(ownerId, targetLockLevel,
                  reentrant ? GenericLock.COMPATIBILITY_REENTRANT : GenericLock.COMPATIBILITY_NONE,
                  false);
  
          if(acquired)
          {
              addOwner(ownerId, lock);
          }
          return acquired;
      }
docs: Tries to acquire a lock on a resource. <br>
  <br>
  This method does not block, but immediatly returns. If a lock is not
  available <code>false</code> will be returned.
  
  @param ownerId         a unique id identifying the entity that wants to acquire this
  lock
  @param resourceId      the resource to get the level for
  @param targetLockLevel the lock level to acquire
  @param reentrant       <code>true</code> if this request shall not be influenced by
  other locks held by the same owner
  @param isolationId     the isolation level identity key. See {@link CommonsOJBLockManager}.
  @return <code>true</code> if the lock has been acquired, <code>false</code> otherwise