There should be a sub-class of AnnotationDescriptor which exposes properly typed accessors for the standard constraint attributes groups(), method() payload() and validationAppliesTo().