private BucketAdvisor getParentAdvisor(int bucketId) {
    PartitionedRegion colocatedRegion = ColocationHelper.getColocatedRegion(pRegion);
    if (colocatedRegion != null) {
      if (colocatedRegion.isFixedPartitionedRegion()) {
        List<FixedPartitionAttributesImpl> fpas = colocatedRegion.getFixedPartitionAttributesImpl();
        if (fpas != null) {
          for (FixedPartitionAttributesImpl fpa : fpas) {
            if (fpa.hasBucket(bucketId)) {
              return colocatedRegion.getRegionAdvisor().getBucketAdvisor(fpa.getStartingBucketID());
            }
          }
        }
      } else {
        return colocatedRegion.getRegionAdvisor().getBucketAdvisor(bucketId);
      }
    }
    return null;
  }
Constructs a new BucketAdvisor for the Bucket owned by RegionAdvisor.

@param bucket the bucket to provide metadata and advice for
@param regionAdvisor advisor for the PartitionedRegion
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java