try {
mpw.writePart(rootDataHandler, format.getRootContentId());
for (String cid : attachments.keySet()) {
mpw.writePart(attachments.get(cid), cid);
}
mpw.complete();
outputStream.flush();
} catch (IOException ex) {
throw AxisFault.makeFault(ex);
}
} else {