public void handleAnnotation(Annotation annotation) {
if (!(annotation instanceof FieldProperties)) return;
FieldProperties props = (FieldProperties)annotation;
this.setRequired(props.required());
this.setEditable(props.editable());
this.setAllowNull(props.allowNull());
this.label = "".equals(props.label()) ? props.verboseName() : props.label();
this.helpText = props.helpText();
this.hidden = props.hidden();
this.setWidgetAttrs(props.widgetAttrs());
if (props.widgetClass() != FieldProperties.NoWidget.class) this.widgetClass = props.widgetClass();