public void handleViolations(
                final BiConsumer<ConstraintViolation<? extends T>, ValidationSeverity> consumer) {

            for (final ConstraintViolation<? extends T> constraintViolation : constraintViolations) {
                final ValidationSeverity severity = ValidationSeverity.fromPayloads(
                        constraintViolation.getConstraintDescriptor().getPayload());

                consumer.accept(constraintViolation, severity);
            }
        }
The passed constraintViolationConsumer is called for each violation in the result set. If there are no
errors or warnings the consumer will not be called.
stroom-util/src/main/java/stroom/util/config/ConfigValidator.java