code: protected void extendPathFilter(List<Term> terms, String searchRoot) {
  
          if (!CmsResource.isFolder(searchRoot)) {
              searchRoot += "/";
          }
          terms.add(new Term(CmsSearchField.FIELD_PARENT_FOLDERS, searchRoot));
      }
docs: Extends the given path query with another term for the given search root element.<p>
  
  @param terms the path filter to extend
  @param searchRoot the search root to add to the path query