buildGenericRecord(record, null, cal.getTimeInMillis(), "system");
output.collect(key, record);
record = new ChukwaRecord();
JSONObject memory = (JSONObject) json.get("memory");
Iterator<String> memKeys = memory.keySet().iterator();
while(memKeys.hasNext()) {
String key = memKeys.next();
record.add(key, memory.get(key).toString());
}
buildGenericRecord(record, null, cal.getTimeInMillis(), "memory");