JBIDE-18750 Make CDI validation messages dependent on version