class DynamodbEventTransformer {

    public static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent) {
        return dynamodbEvent
                .getRecords()
                .stream()
                .filter(record -> !Objects.isNull(record))
                .map(DynamodbRecordTransformer::toRecordV2)
                .collect(Collectors.toList());
    }

}