final TypeMapping mapping = context.findTypeMapping(rebuildSession.getType());
ModuleIdAndVersionStream moduleStream = new ModuleIdAndVersionStream(rebuildSession,
DEFAULT_BATCH_SIZE, mapping);
IdAndVersionFactory factory = new MappedObjectIdAndVersionFactory(mapping);
ElasticSearchSorter elasticSearchSorter = new ElasticSearchSorter(createSorter(factory));
IteratorFactory iteratorFactory = new IteratorFactory(factory);
String workingDirectory = SystemUtils.getJavaIoTmpDir().getAbsolutePath();