public BucketRegion getBucketRegion(Object key) {
    if (dataStore == null) {
      return null;
    }
    Integer bucketId = PartitionedRegionHelper.getHashKey(this, null, key, null, null);
    return dataStore.getLocalBucketById(bucketId);
  }
Returns the local BucketRegion given the key. Returns null if no BucketRegion exists.

@since GemFire 6.1.2.9
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java