code: public CmsRelationFilter filterResource(CmsResource resource) {
  
          CmsRelationFilter filter = filterStructureId(resource.getStructureId());
          filter = filterPath(resource.getRootPath());
          return filter;
      }
docs: Returns an extended filter with the given resource (path and id) restriction.<p>
  
  @param resource the resource to filter
  
  @return an extended filter with the given resource (path and id) restriction