void waitForChange() {
      Region pr = getPartitionedRegion();

      synchronized (this) {
        while (!profileChanged && pr != null && !pr.isDestroyed()) {
          // the advisee might have been destroyed due to initialization failure
          try {
            wait(1000);
          } catch (InterruptedException ignored) {
          }
        }
        profileChanged = false;
      }
    }
return true if the given member has this advisor's partitioned region
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/RegionAdvisor.java