protected static void remoteDefineEntry(String regionName, String entryName, Scope scope,
      boolean doNetSearch) throws CacheException {

    Region root = getRootRegion();
    Region region = root.getSubregion(regionName);

    AttributesFactory factory = new AttributesFactory();
    factory.setScope(scope);

    if (!doNetSearch) {
      factory.setCacheLoader(new CacheLoader() {
        @Override
        public Object load(LoaderHelper helper) throws CacheLoaderException {
          String s = "Should not be loading \"" + helper.getKey() + "\" in \""
              + helper.getRegion().getFullPath() + "\"";
          throw new CacheLoaderException(s);
        }

        @Override
        public void close() {}
      });
    }

    Region sub = region.createSubregion(entryName, factory.create());
    sub.create(entryName, null);

    LogWriterUtils.getLogWriter()
        .info("Defined Entry named '" + entryName + "' in region '" + sub.getFullPath() + "'");
  }
Defines an entry in the Region with the given name and scope. In 3.0 this method create a
subregion named <code>entryName</code> (with the appropriate attributes) that contains an entry
named <code>entryName</code>.

@param regionName The name of a region that is a sub-region of the root region, or a global
       name
@param entryName Must be {@link java.io.Serializable}
@param doNetSearch Will the distributed region perform a netSearch when looking for objects? If
       <code>false</code> a {@link CacheException} will be thrown if an entry in the region is
       asked for and it not there.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DistributedCacheTestCase.java