if (field.getAnnotation(NotEmpty.class) != null) {
formField.setRequired(true);
formField.setMin(1);
}
if (field.getAnnotation(Size.class) != null) {
Size size = field.getAnnotation(Size.class);
formField.setMin(size.min());
formField.setMax(size.max());
}
if (field.getAnnotation(Length.class) != null) {
Length length = field.getAnnotation(Length.class);
formField.setMin(length.min());
formField.setMax(length.max());