formField.setEmbeddedClass(field.getDeclaringClass());
FormField form = field.getAnnotation(FormField.class);
formField.setType(form.type());
formField.setHelp(form.help());
addValidation(field, formField);
formField.setRenderCrud(form.renderCrud());
if (EntityFilter.WIDGET_TYPE.EMBEDDED.equals(formField.getType())) formField.setSubfields(getSubFields(field));
return formField;
}
private static void addValidation(Field field, FormFieldImpl formField) {