* JMSOutputStream will then call back the sendExchange method of this class. {@inheritDoc}
*/
public void prepare(Message message) throws IOException {
if (jmsConfig.getTargetDestination() == null || jmsConfig.getConnectionFactory() == null) {
String name = endpointInfo.getName().toString() + ".jms-conduit";
throw new ConfigurationException(
new org.apache.cxf.common.i18n.Message("INSUFFICIENT_CONFIGURATION_CONDUIT", LOG, name));
}
boolean isTextPayload = JMSConstants.TEXT_MESSAGE_TYPE.equals(jmsConfig.getMessageType());
JMSOutputStream out = new JMSOutputStream(this, message.getExchange(), isTextPayload);
message.setContent(OutputStream.class, out);