Take a look at `context->addViolation()`, I think passing null as the 3rd argument is not equivalent to what was done before, there's a gotcha in the method !