@Override
    public boolean hasSomethingToFlush() {
      if (IndexingStamp.isDirty()) return true;

      IndexConfiguration indexes = getState();
      for (ID<?, ?> indexId : indexes.getIndexIDs()) {
        UpdatableIndex<?, ?, FileContent, ?> index = indexes.getIndex(indexId);
        if (index != null && index.isDirty()) {
          return true;
        }
      }
      return false;
    }
@Override
    public boolean hasSomethingToFlush()