Fix a bug that prevented creating validation code for @ModelValidation
annotations placed on a field.