code: protected ResourceFilter buildTreeFilter(ResourceFilter configuredFilter) {
          return new ResourceFilter.FilterSet(
                  ResourceFilter.FilterSet.Rule.tree, // a tree filter including intermediate folders
                  new ResourceFilter.FilterSet(ResourceFilter.FilterSet.Rule.and,
                          // the combination with the default mapping filter excludes 'rep:...' nodes
                          configuredFilter,
                          nodesConfig.getDefaultNodeFilter()),
                  nodesConfig.getTreeIntermediateFilter());
      }
docs: Creates a 'tree filter' as combination with the configured filter and the rules for the
  'intermediate' nodes (folders) to traverse up to the target nodes.
  
  @param configuredFilter the filter for the target nodes