@Override
	public Tuple mapFieldSet(FieldSet fieldSet) throws BindException {
		String[] names = fieldSet.getNames();

		TupleBuilder builder = TupleBuilder.tuple();

		if (dateFormat != null) {
			builder.setFormats(null, dateFormat).setConfigurableConversionService(defaultConversionService);
		}

		for (int i = 0; i < fieldSet.getFieldCount(); i++) {
			builder.put(names[i], getValue(fieldSet, names[i]));
		}

		return builder.build();
	}
A {@link FieldSetMapper} implementation intended to allow a user use a {@link Tuple} as the item. By default, all
fields of the {@link FieldSet} will be mapped as Strings. To use type specific mapping, provide a map of field names
to {@link FieldSetType}. You are not required to map all fields if using type specific mappings (only the ones that
matter).

@author Michael Minella
spring-xd-tuple/src/main/java/org/springframework/xd/tuple/batch/TupleFieldSetMapper.java