.registerRecordProcessor(new GreetingDataLoader())
.build();
// Build an easy batch engine to read greetings from xml file
EasyBatchEngine easyBatchXmlEngine = new EasyBatchEngineBuilder()
.registerRecordReader(new XmlRecordReader("greeting", new File(args[1])))
.registerRecordMapper(new XmlRecordMapper<Greeting>(Greeting.class))
.registerRecordProcessor(new GreetingDataLoader())
.build();
//create a 2 threads pool to call Easy Batch engines in parallel