protected SamlIdPMetadataDocument finalizeMetadataDocument(final SamlIdPMetadataDocument doc,
                                                               final Optional<SamlRegisteredService> registeredService) throws Throwable {
        return doc;
    }
Finalize metadata document saml idp metadata document.

@param doc               the doc
@param registeredService the registered service
@return the saml id p metadata document
@throws Exception the exception
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/idp/metadata/generator/BaseSamlIdPMetadataGenerator.java