Message respMsg = serverContext.getResponseMessage();
if (respMsg == null) {
respMsg = new Message(fault);
serverContext.setResponseMessage(respMsg);
} else {
SOAPFaultElement faultEl = new SOAPFaultElement(fault);
SOAPEnvelope env = respMsg.getSOAPPart().getAsSOAPEnvelope();
env.clearBody();
env.addBodyElement(faultEl);
}
}