private static Map<String, AttributeValue> buildTableAttributeValuesMap(final YubiKeyAccount record) {
        val values = new HashMap<String, AttributeValue>();
        values.put(ColumnNames.ID.getColumnName(), AttributeValue.builder().n(String.valueOf(record.getId())).build());
        values.put(ColumnNames.USERNAME.getColumnName(), AttributeValue.builder().s(String.valueOf(record.getUsername())).build());
        values.put(ColumnNames.DEVICE_IDENTIFIERS.getColumnName(), toAttributeValue(record));
        if (StringUtils.isNotBlank(record.getTenant())) {
            values.put(ColumnNames.TENANT.getColumnName(), AttributeValue.builder().s(record.getTenant()).build());
        }
        LOGGER.debug("Created attribute values [{}] based on [{}]", values, record);
        return values;
    }
Build table attribute values map.

@param record the record
@return the map
support/cas-server-support-yubikey-dynamodb/src/main/java/org/apereo/cas/adaptors/yubikey/dao/DynamoDbYubiKeyFacilitator.java