added addFlashMessage and buildViolation to extractor