public Stream<Ticket> stream() {
        val metadata = ticketCatalog.findAll();
        val resultStreams = metadata
            .stream()
            .map(defn -> {
                val keys = List.<DynamoDbQueryBuilder>of(
                    DynamoDbQueryBuilder.builder()
                        .key(ColumnNames.PREFIX.getColumnName())
                        .attributeValue(List.of(AttributeValue.builder().s(defn.getPrefix()).build()))
                        .operator(ComparisonOperator.EQ)
                        .build());
                return DynamoDbTableUtils.scanPaginator(amazonDynamoDBClient, defn.getProperties().getStorageName(),
                    keys, DynamoDbTicketRegistryFacilitator::deserializeTicket);
            })
            .toList();
        return Streams.concat(resultStreams.toArray(new Stream[0]));
    }
Scan and paginate.

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