if (value instanceof XMLFault) {
if (log.isDebugEnabled()) {
log.debug("Creating message from XMLFault");
}
message = msgFactory.create(protocol);
message.setXMLFault((XMLFault)value);
} else if (mode != null && mode == Service.Mode.MESSAGE) {
// For MESSAGE mode, work with the entire message, Headers and Body
// This is based on logic in org.apache.axis2.jaxws.client.XMLDispatch.createMessageFromBundle()
if (value instanceof SOAPMessage) {