private Set<InternalRegion> getAllRegions(InternalCache internalCache) {
    return internalCache.getAllRegions();
  }
set the hasCacheServer flags for all regions in this cache
geode-core/src/main/java/org/apache/geode/internal/cache/AddCacheServerProfileMessage.java