saveViolation return value

- add a return value also to saveViolation
- use return value in saveUniqueViolation