public void setMirrorType(MirrorType mirrorType) {
    DataPolicy dp = mirrorType.getDataPolicy();
    if (dp.withReplication()) {
      // requested a mirror type that has replication
      // if current data policy is not replicated change it
      if (!getDataPolicy().withReplication()) {
        setDataPolicy(dp);
      }
    } else {
      // requested a mirror type none;
      // if current data policy is replicated change it
      if (getDataPolicy().withReplication()) {
        setDataPolicy(dp);
      }
    }
  }
Returns whether or not this <code>RegionAttributesCreation</code> is equivalent to another
<code>RegionAttributes</code>.
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/RegionAttributesCreation.java