public PartitionedRegion getPartitionedRegion() {
    return pr;
  }
Added to reset the state from the last execution. This is added for CQs only.
geode-core/src/main/java/org/apache/geode/cache/query/internal/ExecutionContext.java