core/src/main/java/com/orientechnologies/orient/core/index/OIndexChangesWrapper.java
@Override
  public Map.Entry<Object, OIdentifiable> nextEntry() {
    if (source.isRebuilding())
      throwRebuildException();

    final Map.Entry<Object, OIdentifiable> entry = delegate.nextEntry();

    if (source.getRebuildVersion() != indexRebuildVersion)
      throwRebuildException();

    return entry;
  }
@Override
  public Map.Entry<Object, OIdentifiable> nextEntry() {
    if (source.isRebuilding())
      throwRebuildException();

    final Map.Entry<Object, OIdentifiable> entry = delegate.nextEntry();

    if (source.getRebuildVersion() != indexRebuildVersion)
      throwRebuildException();

    return entry;
  }
{@inheritDoc}