private Optional<? extends YubiKeyAccount> buildAndDecodeYubiKeyAccount(final YubiKeyAccount account) {
        val yubiKeyAccount = account.clone();
        val devices = yubiKeyAccount.getDevices()
            .stream()
            .map(device -> decodeYubiKeyRegisteredDevice(account, device))
            .filter(Objects::nonNull)
            .collect(Collectors.toList());
        yubiKeyAccount.setDevices(devices);
        return Optional.of(yubiKeyAccount);
    }
Update.

@param account the account
@return true/false
support/cas-server-support-yubikey-core/src/main/java/org/apereo/cas/adaptors/yubikey/registry/BaseYubiKeyAccountRegistry.java