@Override
  public Object[] toArray() {
    return snapshot.toArray();
  }
Create a custom {@link Iterator} implementation for the {@link CopyOnWriteHashSet}
geode-core/src/main/java/org/apache/geode/internal/CopyOnWriteHashSet.java