RegionConfiguration createRegionConfiguration() {
    RegionConfiguration configuration = new RegionConfiguration();

    configuration.setRegionName((String) properties.get(CacheProperty.REGION_NAME));
    configuration
        .setRegionAttributesId((String) properties.get(CacheProperty.REGION_ATTRIBUTES_ID));

    configuration.setEnableGatewayDeltaReplication(
        (Boolean) properties.get(CacheProperty.ENABLE_GATEWAY_DELTA_REPLICATION));
    configuration.setEnableGatewayReplication(
        (Boolean) properties.get(CacheProperty.ENABLE_GATEWAY_REPLICATION));
    configuration
        .setEnableDebugListener((Boolean) properties.get(CacheProperty.ENABLE_DEBUG_LISTENER));
    // Need to set max inactive interval to tell the server to use our custom expiry
    configuration.setMaxInactiveInterval(0);
    configuration.setCustomExpiry(new SessionCustomExpiry());

    return configuration;
  }
Build up a {@code RegionConfiguraton} object from parameters originally passed in as filter
initialization parameters.

@return a {@code RegionConfiguration} object
extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/AbstractSessionCache.java