/**
  * Added for bug 45749. The attributes in pa are merged into this. Only attributes explicitly set
  * in pa will be merged into this. Any attribute set in pa will take precedence over an attribute
  * in this.
  *
  * @param pa the attributes to merge into this.
  * @since 7.0
  */
 public void merge(PartitionAttributesImpl pa) {
   if (pa.hasRedundancy) {
     setRedundantCopies(pa.getRedundantCopies());
   }
   if (pa.hasLocalMaxMemory) {
     setLocalMaxMemory(pa.getLocalMaxMemory());
   }
   if (pa.hasOffHeap) {
     setOffHeap(pa.getOffHeap());
   }
   if (pa.hasTotalMaxMemory) {
     setTotalMaxMemory(pa.getTotalMaxMemory());
   }
   if (pa.hasTotalNumBuckets) {
     setTotalNumBuckets(pa.getTotalNumBuckets());
   }
   if (pa.hasPartitionResolver) {
     setPartitionResolver(pa.getPartitionResolver());
   }
   if (pa.hasColocatedRegionName) {
     setColocatedWith(pa.getColocatedWith());
   }
   if (pa.hasRecoveryDelay) {
     setRecoveryDelay(pa.getRecoveryDelay());
   }
   if (pa.hasStartupRecoveryDelay) {
     setStartupRecoveryDelay(pa.getStartupRecoveryDelay());
   }
   if (pa.hasFixedPAttrs) {
     addFixedPartitionAttributes(pa.getFixedPartitionAttributes());
   }
   if (pa.hasPartitionListeners) {
     this.addPartitionListeners(pa.partitionListeners);
   }
 }
 /**
  * Set local properties
  *
  * @deprecated use {@link #setLocalMaxMemory(int)} in GemFire 5.1 and later releases
  * @param localProps those properties for the local VM
  */
 @Deprecated
 public void setLocalProperties(Properties localProps) {
   this.localProperties = localProps;
   if (localProps.get(PartitionAttributesFactory.LOCAL_MAX_MEMORY_PROPERTY) != null) {
     setLocalMaxMemory(
         Integer.parseInt(
             (String) localProps.get(PartitionAttributesFactory.LOCAL_MAX_MEMORY_PROPERTY)));
   }
 }
 @SuppressWarnings("unchecked")
 public void setAll(@SuppressWarnings("rawtypes") PartitionAttributes pa) {
   setRedundantCopies(pa.getRedundantCopies());
   setLocalProperties(pa.getLocalProperties());
   setGlobalProperties(pa.getGlobalProperties());
   setLocalMaxMemory(pa.getLocalMaxMemory());
   setTotalMaxMemory(pa.getTotalMaxMemory());
   setTotalNumBuckets(pa.getTotalNumBuckets());
   setPartitionResolver(pa.getPartitionResolver());
   setColocatedWith(pa.getColocatedWith());
   setRecoveryDelay(pa.getRecoveryDelay());
   setStartupRecoveryDelay(pa.getStartupRecoveryDelay());
   setOffHeap(((PartitionAttributesImpl) pa).getOffHeap());
   addFixedPartitionAttributes(pa.getFixedPartitionAttributes());
 }