int getChanges() {
    int changes = 0;
    for (final Entry<Object, TXEntryState> objectTXEntryStateEntry : entryMods.entrySet()) {
      TXEntryState txes = (TXEntryState) ((Entry) objectTXEntryStateEntry).getValue();
      if (txes.isDirty()) {
        changes++;
      }
    }
    if (uaMods != null) {
      changes += uaMods.size();
    }
    return changes;
  }
Put all the entries this region knows about into the given "entries" list as instances of
TXEntryStateWithRegionAndKey.
geode-core/src/main/java/org/apache/geode/internal/cache/TXRegionState.java