code: public List<String> getLockedResources(String resourceName, CmsLockFilter filter) throws CmsException {
  
          CmsResource resource = readResource(resourceName, CmsResourceFilter.ALL);
          return m_securityManager.getLockedResources(m_context, resource, filter);
      }
docs: Returns all locked resources within a folder or matches the lock of the given resource.<p>
  
  @param resourceName the name of the resource to check
  @param filter the lock filter
  
  @return a list of locked resource paths (relative to current site)
  
  @throws CmsException if operation was not successful