response = session.createObjectMessage(e);
} else if (exchange.getStatus() == ExchangeStatus.ACTIVE) {
Fault jbiFault = exchange.getFault();
if (jbiFault != null) {
SoapFault fault = new SoapFault(SoapFault.RECEIVER, null, null, null, jbiFault.getContent());
SoapMessage soapFault = soapHelper.onFault(context, fault);
TextMessage txt = session.createTextMessage();
fromNMS(soapFault, txt, (Map) jbiFault.getProperty(JbiConstants.PROTOCOL_HEADERS));
response = txt;
} else {
NormalizedMessage outMsg = exchange.getMessage("out");
if (outMsg != null) {
SoapMessage out = soapHelper.onReply(context, outMsg);
TextMessage txt = session.createTextMessage();
fromNMS(out, txt, (Map) outMsg.getProperty(JbiConstants.PROTOCOL_HEADERS));
response = txt;
}
}