PublishKey key = new PublishKey(glob, "", contentMime, contentMimeExtended);
key.setClientTags("<location dest='agent-192.168.10.218' driver='PSD1'></location>");
PublishQos qos = new PublishQos(glob);
senderContent = "some content";
try {
MsgUnit msgUnit = new MsgUnit(key.toXml(), senderContent.getBytes(), qos.toXml());
sentTimestamp = new Timestamp();
publishOid = con.publish(msgUnit).getKeyOid();
log.info("Success: Publishing done, returned oid=" + publishOid);
} catch(XmlBlasterException e) {
log.warning("XmlBlasterException: " + e.getMessage());