}
ExecutionContext executionContext = smooks.createExecutionContext();
// Configure the execution context to generate a report...
if (this.getSmooksReport() != null) {
executionContext.setEventListener(new HtmlReportGenerator(this.getSmooksReport()));
}
org.milyn.container.plugin.PayloadProcessor payloadProcessor = new PayloadProcessor(smooks, org.milyn.container.plugin.ResultType.JAVA);
// smooks should return a map
// TODO: verify with some unit tests
return (Map<String, Object>) payloadProcessor.process(originalObjects, executionContext);