code: protected void addMetadataFiltersToMetadataResolver(final AbstractMetadataResolver metadataProvider, final List<MetadataFilter> metadataFilterList) {
          val metadataFilterChain = new MetadataFilterChain();
          metadataFilterChain.setFilters(metadataFilterList);
  
          LOGGER.debug("Metadata filter chain initialized with [{}] filters", metadataFilterList.size());
          metadataProvider.setMetadataFilter(metadataFilterChain);
      }
docs: Add metadata filters to metadata resolver.
  
  @param metadataProvider   the metadata provider
  @param metadataFilterList the metadata filter list