private void writeDevicesToFile() {
        FunctionUtils.doUnchecked(__ -> {
            val file = jsonResource.getFile();
            MAPPER.writer().withDefaultPrettyPrinter().writeValue(file, this.devices);
        });
    }
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