public Stream<Ticket> getEntitiesWithAttributes(final String tableName,
                                                    final String filterExpression,
                                                    final Map<String, String> attributeNames,
                                                    final Map<String, AttributeValue> attributeValues) {
        val scanResponse = DynamoDbTableUtils.scan(amazonDynamoDBClient, tableName,
            filterExpression, attributeNames, attributeValues);
        return scanResponse
            .items()
            .stream()
            .map(DynamoDbTicketRegistryFacilitator::deserializeTicket)
            .filter(Objects::nonNull);
    }
Gets entities with attributes.

@param tableName        the table name
@param filterExpression the filter expression
@param attributeNames   the attribute names
@param attributeValues  the attribute values
@return the entities with attributes
support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java