Make checkForViolation Private