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

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