Throws JMSException if conversion is not possible, for example, if the method cannot convert from a map message to a byte array.
Throws UnsupportedEnclodingException if the name charset is not supported.