if (value != null) {
BlockFactory factory = createBlockFactory(providerType);
if (value instanceof XMLFault) {
message = msgFactory.create(messageProtocol);
message.setXMLFault((XMLFault)value);
} else if (providerServiceMode != null && providerServiceMode == 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) {