I have created a custom bean validator annotation
@Documented @Constraint(validatedBy = TestValidator.class) @Target({ElementType.PARAMETER}) @Retention(Retention