void updateNodeToBucketMap(
      HashMap<InternalDistributedMember, HashSet<Integer>> nodeToBuckets, Set<Integer> buckets) {
    for (int id : buckets) {
      InternalDistributedMember node = getOrCreateNodeForBucketWrite(id, null);
      if (nodeToBuckets.containsKey(node)) {
        nodeToBuckets.get(node).add(id);
      } else {
        HashSet<Integer> set = new HashSet<>();
        set.add(id);
        nodeToBuckets.put(node, set);
      }
    }
  }
Fetches entries from local and remote nodes and appends these to register-interest response.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java