Connection connection = DriverManager.getConnection("jdbc:hsqldb:mem", "sa", "");
populateEmbeddedDB(connection);
// Build an easy batch engine
EasyBatchEngine easyBatchEngine = new EasyBatchEngineBuilder()
.registerRecordReader(new JdbcRecordReader(connection, "select * from greeting"))
.registerRecordMapper(new JdbcRecordMapper<Greeting>(Greeting.class))
.registerRecordProcessor(new GreetingProcessor())
.build();
// Run easy batch engine