public <K, V> Region<K, V> createRegion(RegionShortcut type, String name) {
    final RegionFactory<K, V> regionFactory = getCache().createRegionFactory(type);
    return regionFactory.create(name);
  }
convenience method to create a region with customized regionFactory

@param <K> the type of keys in the region
@param <V> the ype of values in the region
@param type the {@link RegionShortcut} to use to create the region
@param name the name of the region to create
@param regionFactoryConsumer a lamda that allows you to customize the regionFactory
@return the newly created region
geode-dunit/src/main/java/org/apache/geode/test/junit/rules/MemberStarterRule.java