@Override
  public MirrorType getMirrorType() {
    // checkReadiness();
    if (dataPolicy.isNormal() || dataPolicy.isPreloaded() || dataPolicy.isEmpty()
        || dataPolicy.withPartitioning()) {
      return MirrorType.NONE;
    } else if (dataPolicy.withReplication()) {
      return MirrorType.KEYS_VALUES;
    } else {
      throw new IllegalStateException(
          String.format("No mirror type corresponds to data policy %s",
              dataPolicy));
    }
  }
For use only by DataExternalizable mechanism
geode-core/src/main/java/org/apache/geode/internal/admin/remote/RemoteRegionAttributes.java