code: public CmsLock getLock(CmsResource resource) throws CmsException {
  
          CmsLock lock = null;
  
          // iterate through all wrappers and call "getLock" till one does not return null
          List<I_CmsResourceWrapper> wrappers = getWrappers();
          Iterator<I_CmsResourceWrapper> iter = wrappers.iterator();
          while (iter.hasNext()) {
              I_CmsResourceWrapper wrapper = iter.next();
              lock = wrapper.getLock(m_cms, resource);
              if (lock != null) {
                  break;
              }
          }
  
          // delegate the call to the CmsObject
          if (lock == null) {
              lock = m_cms.getLock(resource);
          }
  
          return lock;
      }
docs: Returns the lock state for a specified resource.<p>
  
  Iterates through all configured resource wrappers till the first returns not <code>null</code>.<p>
  
  @see I_CmsResourceWrapper#getLock(CmsObject, CmsResource)
  @see CmsObject#getLock(CmsResource)
  
  @param resource the resource to return the lock state for
  
  @return the lock state for the specified resource
  
  @throws CmsException if something goes wrong