@Override
    public void saveOrUpdate(final SamlMetadataDocument document) {
        this.entityManager.merge(document);
    }
This is {@link JpaSamlRegisteredServiceMetadataResolver}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp-metadata-jpa/src/main/java/org/apereo/cas/support/saml/metadata/resolver/JpaSamlRegisteredServiceMetadataResolver.java