code: public static Optional<SamlRegisteredServiceServiceProviderMetadataFacade> get(final SamlRegisteredServiceCachingMetadataResolver resolver,
                                                                                     final SamlRegisteredService registeredService,
                                                                                     final String entityID) {
          return get(resolver, registeredService, entityID, new CriteriaSet());
      }
docs: Adapt saml metadata and parse. Acts as a facade.
  
  @param resolver          the resolver
  @param registeredService the service
  @param entityID          the entity id
  @return the saml metadata adaptor