columns.add(new Column(field.getLabel(), field.getVariable(), field.getType()));
}
// Add the rows to the report based on the form's items
for (Iterator<Item> items = dataForm.getItems(); items.hasNext();) {
Item item = items.next();
List<Field> fieldList = new ArrayList<Field>(columns.size());
FormField field;
for (Iterator<FormField> fields = item.getFields(); fields.hasNext();) {
field = fields.next();
// The field is created with all the values of the data form's field
List<String> values = new ArrayList<String>();
for (Iterator<String> it=field.getValues(); it.hasNext();) {
values.add(it.next());