public void setDataPolicy(DataPolicy dataPolicy) {
    this.dataPolicy = dataPolicy;
    setHasDataPolicy(true);
    if (this.dataPolicy.withPartitioning() && !hasPartitionAttributes()) {
      setPartitionAttributes((new PartitionAttributesFactory()).create());
      setHasPartitionAttributes(false);
    }
  }
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