protected boolean shouldGenerateMetadata(final Optional<SamlRegisteredService> registeredService) {
        val samlIdPMetadataLocator = configurationContext.getSamlIdPMetadataLocator();
        return samlIdPMetadataLocator.shouldGenerateMetadataFor(registeredService);
    }
A metadata generator based on a predefined template.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/idp/metadata/generator/BaseSamlIdPMetadataGenerator.java