code: public CmsUser lockedBy(CmsDbContext dbc, CmsResource resource) throws CmsException {
  
          return readUser(dbc, m_lockManager.getLock(dbc, resource).getEditionLock().getUserId());
      }
docs: Returns the user, who had locked the resource.<p>
  
  A user can lock a resource, so he is the only one who can write this
  resource. This methods checks, if a resource was locked.
  
  @param dbc the current database context
  @param resource the resource
  
  @return the user, who had locked the resource
  
  @throws CmsException will be thrown, if the user has not the rights for this resource