msgContext.setProperty(Constants.OUT_TRANSPORT_INFO, outbuffer);
MessageContext faultContext = engine.createFaultMessageContext(msgContext, e);
// If the fault is not going along the back channel we should be 202ing
if (AddressingHelper.isFaultRedirected(msgContext)) {
response.setStatusLine(new StatusLine(ver, 202, "Accepted"));
} else {
response.setStatusLine(new StatusLine(ver, 500, "Internal server error"));
}
engine.sendFault(faultContext);
response.setEntity(outbuffer);
} catch (Exception ex) {
if (AddressingHelper.isFaultRedirected(msgContext)) {
response.setStatusLine(new StatusLine(ver, 202, "Accepted"));
} else {
response.setStatusLine(new StatusLine(ver, 500, "Internal server error"));
String msg = ex.getMessage();
StringEntity entity;
if (msg != null && msg.trim().length() != 0) {
entity = new StringEntity(msg);
} else {