if (keysToFetch.size() > 999) {
Map<Key<Object>, Object> map = objectify.get(keysToFetch);
objectify.put(map.values());
Cursor cursor = iterator.getCursor();
Queue queue = QueueFactory.getDefaultQueue();
String newBookmark = cursor.toWebSafeString();
queue.add(withUrl("/admin/reindex").method(TaskOptions.Method.POST)
.param("entityClass", entityClass)
.param("dumpVersion", dumpVersion)
.param("bookmark", newBookmark));
logger.info("1000 objects processed, created new task with url: entityClass={}, dumpVersion={}, bookmark: {}", new Object[]{entityClass, dumpVersion, newBookmark});