private void saveSamlIdPMetadataDocument(final SamlIdPMetadataDocument doc) {
        this.transactionTemplate.execute(new TransactionCallbackWithoutResult() {
            @Override
            protected void doInTransactionWithoutResult(
                @Nonnull
                final TransactionStatus status) {
                entityManager.merge(doc);
            }
        });
    }
This is {@link JpaSamlIdPMetadataGenerator}.

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