public void marshal(Exchange exchange, Object object, OutputStream outputStream) throws Exception {
ObjectHelper.notNull(config, "config");
OutputStreamWriter out = new OutputStreamWriter(outputStream);
CSVWriter csv = new CSVWriter(config);
csv.setWriter(out);
try {
List list = ExchangeHelper.convertToType(exchange, List.class, object);
if (list != null) {
for (Object child : list) {