public static String arrayToString(Object obj) {
    if (!obj.getClass().isArray()) {
      return "-not-array-object-";
    }
    StringBuilder buff = new StringBuilder("[");
    int arrayLength = Array.getLength(obj);
    for (int i = 0; i < arrayLength - 1; i++) {
      buff.append(Array.get(obj, i).toString());
      buff.append(",");
    }
    if (arrayLength > 0) {
      buff.append(Array.get(obj, arrayLength - 1).toString());
    }
    buff.append("]");

    return buff.toString();
  }
Validates that the configuration provided is the same as the configuration for this
InternalDistributedSystem

@param propsToCheck the Properties instance to compare with the existing Properties
@throws IllegalStateException when the configuration is not the same other returns
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java