Validator - get rid of generics-related compilation failure in Eclipse