code: public CmsLock getLock(String resourcename) throws CmsException {
  
          CmsResource resource = readResource(resourcename, CmsResourceFilter.ALL);
          return getLock(resource);
      }
docs: Returns the lock state for a specified resource name.<p>
  
  If the resource is waiting to be publish you might get a lock of type {@link CmsLockType#PUBLISH}.<p>
  
  @param resourcename the name if the resource to get the lock state for (full current site relative path)
  
  @return the lock state for the specified resource
  
  @throws CmsException if something goes wrong