code: protected Optional<SamlRegisteredServiceServiceProviderMetadataFacade> getSamlMetadataFacadeFor(
          final SamlRegisteredService registeredService, final String entityId) {
          return SamlRegisteredServiceServiceProviderMetadataFacade.get(
              samlProfileHandlerConfigurationContext.getSamlRegisteredServiceCachingMetadataResolver(), registeredService, entityId);
      }
docs: Gets saml metadata adaptor for service.
  
  @param registeredService the registered service
  @param entityId          the entity id
  @return the saml metadata adaptor for service