code: public List<CmsResource> getLockedResourcesObjectsWithCache(
          CmsDbContext dbc,
          CmsResource resource,
          CmsLockFilter filter,
          Map<String, CmsResource> cache)
      throws CmsException {
  
          return m_lockManager.getLockedResourcesWithCache(dbc, resource, filter, cache);
      }
docs: Returns all locked resources in a given folder, but uses a cache for resource lookups.<p>
  
  @param dbc the current database context
  @param resource the folder to search in
  @param filter the lock filter
  @param cache the cache to use for resource lookups
  
  @return a list of locked resources
  
  @throws CmsException if the current project is locked