public boolean isProfileFromSameGroup(ServerBucketProfile profile) {
    Set<String> localServerGroups = getLocalServerGroups();
    if (localServerGroups.isEmpty()) {
      return true;
    }

    Set<BucketServerLocation66> locations = profile.getBucketServerLocations();

    for (BucketServerLocation66 sl : locations) {
      String[] groups = sl.getServerGroups();
      if (groups.length == 0) {
        return true;
      } else {
        for (String s : groups) {
          if (localServerGroups.contains(s)) {
            return true;
          }
        }
      }
    }
    return false;
  }
@param expectedOldValue only succeed if current value is equal to expectedOldValue
@throws EntryNotFoundException if entry not found or if expectedOldValue not null and current
        value was not equal to expectedOldValue
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java