docs: @SneakyThrows
      @SuppressFBWarnings("PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS")
      public static MetadataResolver getMetadataResolverForAllSamlServices(final ServicesManager servicesManager,
                                                                           final String entityID,
                                                                           final SamlRegisteredServiceCachingMetadataResolver resolver) {
  
          val registeredServices = servicesManager.findServiceBy(SamlRegisteredService.class::isInstance);
          val chainingMetadataResolver = new ChainingMetadataResolver();
  
          val resolvers = registeredServices.stream()
              .filter(SamlRegisteredService.class::isInstance)
              .map(SamlRegisteredService.class::cast)
              .map(s -> SamlRegisteredServiceServiceProviderMetadataFacade.get(resolver, s, entityID))
              .filter(Optional::isPresent)
              .map(Optional::get)
              .map(SamlRegisteredServiceServiceProviderMetadataFacade::getMetadataResolver)
              .collect(Collectors.toList());
  
          LOGGER.debug("Located [{}] metadata resolvers to match against [{}]", resolvers, entityID);
  
          chainingMetadataResolver.setResolvers(resolvers);
          chainingMetadataResolver.setId(entityID);
          chainingMetadataResolver.initialize();
          return chainingMetadataResolver;
      }