// Set the Detail and contents of Detail
Block[] blocks = xmlFault.getDetailBlocks();
if (blocks != null && blocks.length > 0) {
Detail detail = soapFault.addDetail();
// Get a OM->SAAJ converter
SAAJConverterFactory converterFactory =
(SAAJConverterFactory)FactoryRegistry.getFactory(SAAJConverterFactory.class);
SAAJConverter converter = converterFactory.getSAAJConverter();
for (int i = 0; i < blocks.length; i++) {
try {
converter.toSAAJ(blocks[i].getOMElement(), detail);
} catch (XMLStreamException xse) {
throw ExceptionFactory.makeWebServiceException(xse);