/** * Fills in the state (that is, adds entries and creates subregions) of a given * <code>Region</code> based on the description provided by this <code>RegionCreation</code>. * */ private void fillIn(Region region) throws TimeoutException, CacheWriterException, RegionExistsException { for (Iterator iter = this.values.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); region.put(entry.getKey(), entry.getValue()); } if (region instanceof Extensible) { // UnitTest CacheXml81Test.testRegionExtension @SuppressWarnings("unchecked") final Extensible<Region<?, ?>> extensible = (Extensible<Region<?, ?>>) region; extensionPoint.fireCreate(extensible); } for (Iterator iter = this.subregions.values().iterator(); iter.hasNext();) { RegionCreation sub = (RegionCreation) iter.next(); sub.create(region); } }