public static PartitionedRegion getPRFromId(int prid) throws PRLocallyDestroyedException {
    final Object o;
    synchronized (prIdToPR) {
      o = prIdToPR.getRegion(prid);
    }
    return (PartitionedRegion) o;
  }
This method returns PartitionedRegion associated with a PartitionedRegion ID from prIdToPR map.

@param prid Partitioned Region ID
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java