}
catch (Exception e) {
String errMsg = "Exception occurred processing input message in " +
"org.openeai.jms.consumer.commands.Command. Exception: " +
e.getMessage();
throw new CommandException(errMsg);
}
// Retrieve text portion of message.
TextMessage msg = (TextMessage)aMessage;
try {
// Clear the message body for the reply, so we do not
// have to do it later.
msg.clearBody();
}
catch (Exception e) {
String errMsg = "Error clearing the message body.";
throw new CommandException(errMsg + ". The exception is: " +
e.getMessage());
}
// Get the ControlArea from XML document.
Element eControlArea = getControlArea(inDoc.getRootElement());