public Integer call() throws Exception {
prepare();
Worker worker = new Worker(recordProcessorFactory, configuration, workerThreadPool);
int exitCode = 0;
try {
worker.run();
} catch (Throwable t) {
LOG.error("Caught throwable while processing data.", t);
exitCode = 1;
}
return exitCode;