code: private boolean isLocked(Class entityType, String entityKey, Integer lockType)
              throws LockingException {
          IEntityLock[] locks = retrieveLocks(entityType, entityKey, lockType);
          return locks.length > 0;
      }
docs: Answers if the entity represented by entityType and entityKey has one or more locks. Param
  <code>lockType</code> can be null.
  
  @param entityType
  @param entityKey
  @param lockType (optional)
  @exception org.apereo.portal.concurrency.LockingException