public synchronized void reset() {
    lastLoaderProcessed.set(0);
    allUrlsWereProcessed = false;
    loaders.clear();
    searchOffset = 0;
    cache.clearCache();
  }
public synchronized void reset()