smooks.setReaderConfig(new CSVRecordParserConfigurator("firstName,lastName,gender,age,country")
.setBinding(new Binding("customerList", Customer.class, BindingType.LIST)));
// Configure the execution context to generate a report...
ExecutionContext executionContext = smooks.createExecutionContext();
executionContext.setEventListener(new HtmlReportGenerator("target/report/report.html"));
JavaResult javaResult = new JavaResult();
smooks.filterSource(executionContext, new StringSource(messageIn), javaResult);
return (List) javaResult.getBean("customerList");