Hardy Ferentschik edited a comment on Improvement BVAL-191

but is addBeanNode (or addEntityNode) not misleading since we not really add a node?

Wouldn't something like this even better:

constraintValidatorContext 
    .buildConstraintViolationWithTemplate("constraints.CompatiblePersons.gender.message") 
        .addNode("persons") 
        .inIterable().atIndex(0) 
        .addConstraintViolation()
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira