while (nd != null) {
Node next = nd.getNextSibling();
soapFault.getDetail().appendChild(nd);
nd = next;
}
<BUG>} else {
soapFault.setFaultCode(new QName("http://cxf.apache.org/faultcode", "HandlerFault"));
String msg = ex.getMessage();</BUG>
if (msg != null) {
soapFault.setFaultString(msg);

while (nd != null) {
Node next = nd.getNextSibling();
soapFault.getDetail().appendChild(nd);
nd = next;
}
} else {
try {
soapFault.setFaultCode(new QName("http://cxf.apache.org/faultcode", "HandlerFault"));
} catch (SOAPException ex2) {
}
String msg = ex.getMessage();
if (msg != null) {
soapFault.setFaultString(msg);
