code: protected CmsLockInfo getLock(CmsUUID structureId) throws CmsException {
  
          CmsResource res = getCmsObject().readResource(structureId, CmsResourceFilter.IGNORE_EXPIRATION);
          return getLock(getCmsObject().getSitePath(res));
      }
docs: Helper method for locking a resource which returns some information on whether the locking
  failed, and why.<p>
  
  @param structureId the structure id of the resource
  @return the locking information
  
  @throws CmsException if something went wrong