}
private TextStructure getTextStructure(JmsMessage msg) throws WizardPageException {
TextDocumentId docId = msg.getPayloadTextDocumentId();
if (docId == null) {
throw new WizardPageException(this, "The selected JMS message is defined to have a TEXT payload, " +
"but no text structure has been assigned to it. Please revisit the definition for the " +
"selected JMS message.");
}
TextDocument doc = lookupTextDocument(docId);
if (doc == null) {
throw new WizardPageException(this, "The selected JMS message is defined to have a TEXT payload, " +
"but the system cannot find the defined text structure. Please revisit the definition for the " +
"selected JMS message.");
}
return doc.getDataStructure();
}