public boolean isInitialized() {
    synchronized (initializeLock) {
      return initialized;
    }
  }
wait for pending profile exchange to complete before returning
geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionAdvisor.java