private static Map<String, AttributeValue> convertAttributes(final TicketPayload payload) {
        val attributes = new HashMap<String, AttributeValue>();
        payload.getAttributes()
            .entrySet()
            .stream()
            .filter(entry -> !entry.getValue().isEmpty())
            .forEach(entry -> {
                val allValues = entry.getValue().stream().map(Object::toString).collect(Collectors.toList());
                if (!allValues.isEmpty()) {
                    val attributeValues = AttributeValue.builder().ss(allValues).build();
                    attributes.put(entry.getKey(), attributeValues);
                }
            });
        return attributes;
    }
Build table attribute values from ticket map.

@param payload the payload
@return the map
support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java