public void setHosting(boolean value) {
    if (value) {
      PartitionedRegion region = getPartitionedRegion();
      Assert.assertTrue(realBucket != null);
      Assert.assertTrue(!advisor.isHosting());
      if (region.isFixedPartitionedRegion()) {
        List<FixedPartitionAttributesImpl> list = region.getFixedPartitionAttributesImpl();
        if (list != null) {
          for (FixedPartitionAttributesImpl info : list) {
            if (info.hasBucket(bid)) {
              advisor.setHosting(true);
              break;
            }
          }
        }
      } else { // normal PR
        advisor.setHosting(true);
      }
    } else {
      // Assert.assertTrue(!getPartitionedRegion().getDataStore().isManagingBucket(this.bid));
      advisor.setHosting(false);
      realBucket = null;
    }
  }
Notify this proxy of the real bucket as its target. Future calls to this instance will then
proxy them back to the real bucket.

@param br the real bucket which will be the target for this proxy
geode-core/src/main/java/org/apache/geode/internal/cache/ProxyBucketRegion.java