final NamedElement detail = ((SoapFault10)soapFault).getDetailElement() ;
if (detail != null)
{
StreamHelper.writeStartElement(streamWriter, QNAME_DETAIL) ;
final ElementContent detailContent = detail.getElementContent() ;
detailContent.writeContent(streamWriter) ;
StreamHelper.writeEndElement(streamWriter, null, null) ;
}
StreamHelper.writeEndElement(streamWriter, QNAME_FAULT.getPrefix(), namespaceURI) ;
}