LOG.warn("Unable to get content type from input message. {}", e.getMessage(), e);
} catch (MessagingException e) {
LOG.warn("Unable to get content type from input message. {}", e.getMessage(), e);
}
Message message = null;
if (ct != null && ct.match("text/*")) {
message = aConnection.createTextMessage();
// TODO: MessageUtils.copy(aInput.getInputStream(), tmsg);
} else {
BytesMessage bmsg = aConnection.createBytesMessage();
message = bmsg;