public static List<CustomerGroup> formatOutputs(JSONArray results) {
		final List<CustomerGroup> ret = new ArrayList<CustomerGroup>();

		for (int i = 0; i < results.length(); i++) {
			JSONObject r = null;
			if (results.get(i) instanceof JSONObject)
				r = (JSONObject) results.get(i);
			if (r != null) {
				final CustomerGroup c = new CustomerGroup();
				if (r.has("name"))
					c.setName(r.get("name").toString());
				c.setNumber(r.get("number").toString());
				c.setPriceGroup(r.get("priceGroup").toString());
				c.setUuid(r.get("uuid").toString());
				ret.add(c);
			}
		}
		return ret;
	}