code: static ConsistencyCheck run(MultiIndex index, ItemDataConsumer mgr) throws IOException, RepositoryException
     {
        ConsistencyCheck check = new ConsistencyCheck(index, mgr);
        check.run();
        return check;
     }
docs: Runs the consistency check on <code>index</code>.
  
  @param index the index to check.
  @param mgr   the ItemStateManager from where to load content.
  @return the consistency check with the results.
  @throws IOException if an error occurs while checking.
  @throws RepositoryException