private void checkLocalMaxMemoryExists() {
    if (offHeap && !localMaxMemoryExists) {
      // real value does NOT yet exist so throw IllegalStateException
      throw new IllegalStateException(
          "Attempting to use localMaxMemory for off-heap but value is not yet known (default value is equal to off-heap-memory-size)");
    }
  }
@throws IllegalStateException if off-heap and the actual value is not yet known (because the
        DistributedSystem has not yet been created)
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionAttributesImpl.java