private <K, V> Region<K, V> createRegion(String regionName,
      String diskStoreName,
      boolean isDataPolicyPersistent,
      boolean isDataSynchronous, boolean isHeapEviction,
      boolean isOverflowEviction,
      int overflowCapacity) {
    RegionFactory<K, V> regionFactory = cache.createRegionFactory(LOCAL);

    if (isDataPolicyPersistent) {
      regionFactory.setDataPolicy(DataPolicy.PERSISTENT_REPLICATE);
    }

    regionFactory.setDiskStoreName(diskStoreName);
    regionFactory.setDiskSynchronous(isDataSynchronous);

    if (isHeapEviction) {
      regionFactory.setEvictionAttributes(heapEvictionAttributes);
    } else if (isOverflowEviction) {
      regionFactory.setEvictionAttributes(createOverflowEvictionAttributes(overflowCapacity));
    }

    return regionFactory.create(regionName);
  }
Regression test for TRAC #41770: ConcurrentRegionOperationsJUnitTest fails with duplicate
create in an oplog
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java