public Region createDynamicRegion(String parentRegionName, String regionName)
      throws CacheException {
    if (isClosed()) {
      throw new IllegalStateException("Dynamic region factory is closed");
    }
    doBeforeRegionCreated(parentRegionName, regionName);
    Region region = createDynamicRegionImpl(parentRegionName, regionName, true);
    doAfterRegionCreated(region, false, false, null);
    return region;
  }
Creates the dynamic Region in the local cache and distributes the creation to other caches.

@param parentRegionName the new region is created as a subregion of the region having this path
@param regionName the name of the new subregion
@return the {@code Region} created
geode-core/src/main/java/org/apache/geode/cache/DynamicRegionFactory.java