ByteArrayOutputStream outStream = new ByteArrayOutputStream();
XMLEventWriter evtWriter = outputFactory.createXMLEventWriter(outStream);
writer.write(fault, faultPart, evtWriter);
LOG.log(Level.INFO, "Found exception in the raises list. Marshalling.");
ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray());
XMLEventReader evtReader = inputFactory.createXMLEventReader(inStream);
CorbaObjectHandler obj = corbaStaxObject.readObjectFromStax(evtReader, exIdlType);
CorbaStreamable streamable = new CorbaStreamable(obj, elName);
message.setStreamableException(streamable);
}