String[] parts = data.split(",");
for(String part: parts) {
if(part.contains("{")) {
parseEntity(child, part);
} else {
KeyValuePair kvp = KeyValuePair.parseKeyAndValue(part, ":");
child.setAttribute(kvp.getKey().trim(), kvp.getValue().trim());
}
}
return child;
}