Element detail = fault.getDetail();
writer.writeStartElement("detail");
StaxSerializer serializer = new StaxSerializer();
List details = detail.getContent();
for (int i = 0; i < details.size(); i++) {
serializer.writeElement((Element) details.get(i), writer);
}
writer.writeEndElement(); // detail
}
if (configuration.isPrintStackTraceInFaults()) {
writer.writeStartElement("stack");