private static InternalPool calcPool(Region<?, ?> r) {
    String poolName = r.getAttributes().getPoolName();
    if (poolName == null || "".equals(poolName)) {
      throw new IllegalStateException(
          "The region " + r.getFullPath() + " did not have a client pool configured.");
    } else {
      InternalPool pool = (InternalPool) PoolManager.find(poolName);
      if (pool == null) {
        throw new IllegalStateException("The pool " + poolName + " does not exist.");
      }
      return pool;
    }
  }
Used by tests to create proxies for "fake" regions. Also, used by ClientStatsManager for admin
region.
geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerRegionProxy.java