code: public CmsLock getLock(CmsDbContext dbc, CmsResource resource) throws CmsException {
  
          return m_lockManager.getLock(dbc, resource);
      }
docs: Returns the lock state of a resource.<p>
  
  @param dbc the current database context
  @param resource the resource to return the lock state for
  
  @return the lock state of the resource
  
  @throws CmsException if something goes wrong