@Override
    public MultifactorAuthenticationTrustRecord saveInternal(final MultifactorAuthenticationTrustRecord record) {
        return FunctionUtils.doAndHandle(() -> {
            val destination = getEntityFactory().newInstance();
            BeanUtils.copyProperties(destination, record);
            LOGGER.trace("Saving multifactor authentication trust record [{}]", destination);
            return transactionTemplate.execute(__ -> entityManager.merge(destination));
        }, e -> record).get();
    }
This is {@link JpaMultifactorAuthenticationTrustStorage}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-trusted-mfa-jdbc/src/main/java/org/apereo/cas/trusted/authentication/storage/JpaMultifactorAuthenticationTrustStorage.java