/** * Creates a root {@link Region} in a given <code>Cache</code> * based on the description provided by this * <code>RegionCreation</code>. * * @throws TimeoutException * @throws CacheWriterException * @throws RegionExistsException */ void createRoot(Cache cache) throws TimeoutException, CacheWriterException, RegionExistsException { Region root = null; // Validate the attributes before creating the root region this.attrs.inheritAttributes(cache); this.attrs.setIndexes(this.indexes); this.attrs.prepareForValidation(); try { root = ((GemFireCacheImpl)cache).basicCreateRegion(this.name, new AttributesFactory(this.attrs).create()); } catch (RegionExistsException ex) { root = ex.getRegion(); setMutableAttributes(root); } fillIn(root); } /**