public Collection<? extends ConsentDecision> find(final String principal) {
        val query = DynamoDbQueryBuilder.builder()
            .key(ColumnNames.PRINCIPAL.getColumnName())
            .attributeValue(List.of(AttributeValue.builder().s(principal).build()))
            .operator(ComparisonOperator.EQ)
            .build();
        return getRecordsByKeys(List.of(query)).collect(Collectors.toList());
    }
Find collection.

@param principal the principal
@return the collection
support/cas-server-support-consent-dynamodb/src/main/java/org/apereo/cas/consent/DynamoDbConsentFacilitator.java