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