@Override
    public YubiKeyAccount save(final YubiKeyAccount yubiAccount) {
        val account = super.save(yubiAccount);
        writeDevicesToFile();
        return account;
    }
This is {@link JsonYubiKeyAccountRegistry}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-yubikey-core/src/main/java/org/apereo/cas/adaptors/yubikey/registry/JsonYubiKeyAccountRegistry.java