public void printRoleCommandOrder(Logger LOG) {
    Map<String, Object> map = getContent();
    List<String> keys = Arrays.asList(GENERAL_DEPS_KEY, GLUSTERFS_DEPS_KEY,
      NO_GLUSTERFS_DEPS_KEY, NAMENODE_HA_DEPS_KEY, RESOURCEMANAGER_HA_DEPS_KEY);

    for (String key : keys) {
      LOG.debug(key);
      Object value = map.get(key);
      if (value instanceof Map) {
		Map<String, Object> deps = (Map<String, Object>) map.get(key);
		for (String depKey : deps.keySet()) {
		  Object depValue = deps.get(depKey);
		  if (depValue instanceof Collection) {
			StringBuilder buffer = new StringBuilder();
			for (Object o : ((Collection) depValue)) {
				if (buffer.length() > 0) {
          buffer.append(",");
        }
				buffer.append(o);
			}
			depValue = buffer.toString();
		  }
      LOG.debug("{} => {}", depKey, depValue);
		}
      }
    }
  }
merge StackRoleCommandOrder content with parent

@param parent parent StackRoleCommandOrder instance
ambari-server/src/main/java/org/apache/ambari/server/state/stack/StackRoleCommandOrder.java