SOAPFaultDetail detail = getDetail();
if (getDetail() == null) {
detail = getNewSOAPFaultDetail(this);
setDetail(detail);
}
OMElement faultDetailEnty = new OMElementImpl(
SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY, null, detail,
factory);
faultDetailEnty.setText(sw.getBuffer().toString());
}