//----------- Construct a message and publish it ---------
String content = "<person><name>Castro</name><age>" + ii + "</age></person>";
xmlKey = "<key oid='" + publishOid + "' contentMime='text/xml'>\n</key>";
MsgUnit msgUnit = new MsgUnit(xmlKey, content.getBytes(), "");
log.fine("Publishing ...");
stop.restart();
try {
String str = blasterConnection.publish(msgUnit).getKeyOid();
log.fine("Publishing done" + stop.nice());
} catch(XmlBlasterException e) {
log.severe("Publishing failed, XmlBlasterException: " + e.getMessage());