public static BucketAdvisor createBucketAdvisor(Bucket bucket, RegionAdvisor regionAdvisor) {
    BucketAdvisor advisor = new BucketAdvisor(bucket, regionAdvisor);
    advisor.initialize();
    return advisor;
  }
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