code: private Collection<Count> filterFolderFacets(Collection<Count> folderFacets) {
  
          String siteRoot = A_CmsUI.getCmsObject().getRequestContext().getSiteRoot();
          if (!siteRoot.endsWith("/")) {
              siteRoot += "/";
          }
          Collection<Count> result = new ArrayList<Count>();
          for (Count value : folderFacets) {
              if (value.getName().startsWith(siteRoot) && (value.getName().length() > siteRoot.length())) {
                  if (m_selectedFolders.isEmpty()) {
                      result.add(value);
                  } else {
                      for (String folder : m_selectedFolders) {
                          if (value.getName().startsWith(folder)) {
                              result.add(value);
                              break;
                          }
                      }
                  }
              }
          }
          return result;
      }
docs: Filters the available folder facets.<p>
  
  @param folderFacets the folder facets
  
  @return the filtered facets