// TODO pass tableClass to the FieldTable constructor
// final Class<?> tableClass = field.getAnnotation(FieldTableAnnotation.class).value();
fields.put(name, new FieldTable(name, label));
} else if (field.isAnnotationPresent(FieldTextAnnotation.class)) {
final int width = field.getAnnotation(FieldTextAnnotation.class).width();
fields.put(name, new FieldText(name, label, width));
} else if (field.isAnnotationPresent(FieldIntegerAnnotation.class)) {
final int defaultValue = field.getAnnotation(FieldIntegerAnnotation.class).value();
fields.put(name, new FieldInteger(name, label, defaultValue));
} else if (field.isAnnotationPresent(FieldEnumAnnotation.class)) {
final String[] options = field.getAnnotation(FieldEnumAnnotation.class).value();