// Configure the topic to our needs
TopicProperty topicProperty = new TopicProperty(glob);
topicProperty.setDestroyDelay(topicDestroyDelay);
topicProperty.setCreateDomEntry(true);
pq.setTopicProperty(topicProperty);
MsgUnit msgUnit = new MsgUnit(pk, senderContent, pq);
PublishReturnQos publishReturnQos = con.publish(msgUnit);
log.info("Sending of '" + senderContent + "' done, returned oid=" + publishReturnQos.getKeyOid() + " " + msgUnit.toXml());
return publishReturnQos.getKeyOid();
} catch(XmlBlasterException e) {
log.severe("publish() XmlBlasterException: " + e.getMessage());
assertTrue("publish - XmlBlasterException: " + e.getMessage(), false);
return ""; // never reached