@Override
    public YubiKeyAccount save(final YubiKeyDeviceRegistrationRequest request, final YubiKeyRegisteredDevice... device) {
        val jpaAccount = JpaYubiKeyAccount.builder()
            .username(request.getUsername())
            .devices(CollectionUtils.wrapList(device))
            .tenant(request.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