this.rootEntities = toRootEntities( searchFactory, entities );
this.monitor = createMonitor( searchFactory );
}
private MassIndexerProgressMonitor createMonitor(SearchFactoryImplementor searchFactory) {
return searchFactory.isJMXEnabled() ? new IndexingProgressMonitor() : new SimpleIndexingProgressMonitor();
}