use the non-deprecated getXField, over getFieldAnnotation