@Override
    public YubiKeyAccount save(final YubiKeyAccount account) {
        val jpaAccount = JpaYubiKeyAccount.builder()
            .username(account.getUsername())
            .devices(account.getDevices())
            .tenant(account.getTenant())
            .build();
        return this.entityManager.merge(jpaAccount);
    }
This is {@link JpaYubiKeyAccountRegistry}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-yubikey-jpa/src/main/java/org/apereo/cas/adaptors/yubikey/dao/JpaYubiKeyAccountRegistry.java