}
@Override
public void startAndWait() throws InterruptedException {
BatchCoordinator coordinator = createCoordinator();
coordinator.run();
}
protected BatchCoordinator createCoordinator() {
return new BatchCoordinator( gridDialect, rootEntities, searchFactory, sessionFactory, threadsToLoad,
threadForSubsequentFetching, cacheMode, batchSizeToLoad, maximumIndexedObjects, optimizeOnFinish,