try {
// ****
// And here's the configuration... configuring the CSV reader and the direct
// binding config to create a List of Person objects (List<Person>)...
// ****
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"));