@JsonIgnore
    protected static Optional<SamlRegisteredServiceMetadataAdaptor> determineServiceProviderMetadataFacade(
        final RegisteredServiceAttributeReleasePolicyContext context, final String entityId) {
        val resolver = context.getApplicationContext().getBean(SamlRegisteredServiceCachingMetadataResolver.BEAN_NAME,
            SamlRegisteredServiceCachingMetadataResolver.class);
        return SamlRegisteredServiceMetadataAdaptor.get(resolver, (SamlRegisteredService) context.getRegisteredService(), entityId);
    }
This is {@link BaseSamlRegisteredServiceAttributeReleasePolicy}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/BaseSamlRegisteredServiceAttributeReleasePolicy.java