public int generatePRId(InternalDistributedSystem sys) {
    final DistributedLockService lockService = getPartitionedRegionLockService();
    return _generatePRId(sys, lockService);
  }
generates new partitioned region ID globally.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java