private void writeRecognitionNode(String name, Data data) {
writer.writeStartElement(name);
createTextNode("Size", new Integer(data.getSize()).toString());
if (data.getBody() != null && data.getBody().length > 0) {
writer.writeStartElement("Body");
writer.writeCDATA(new QByteArray(data.getBody()).toString());
// writer.writeCDATA(new QByteArray(data.getBody()).toHex().toString());
writer.writeEndElement();
} else
createBinaryNode("Body", "");
if (data.getBodyHash() != null && data.getBodyHash().length > 0)
createTextNode("BodyHash", new QByteArray(data.getBodyHash()).toHex().toString());
else
createTextNode("BodyHash", "");
writer.writeEndElement();
}