// Get XML and convert to primitive Object map.
Content content = entry.getContent();
if (content instanceof OtherContent) {
OtherContent otherContent = (OtherContent) content;
log.info("Entry info " + otherContent.getXml().getBlob());
XmlUtil xmlUtil = new XmlUtil();
try {
String xmlText = otherContent.getXml().getBlob();
// TODO : This is a temporary work-around till a solution for escaping the
// '>' by the GData client library is worked
xmlText = xmlText.replaceAll("]]>", "]]>");
Map<String, Object> entity = xmlUtil.convertXmlToProperties(xmlText);
if (entity == null) {
entity = new HashMap<String, Object>();
}
// copy id which is the same as self and edit link
entity.put(ContentUtil.ID, entry.getId());