}
if (message.getContent(OutputStream.class) == null) {
return;
}
AttachmentSerializer serializer =
new AttachmentSerializer(message,
getMultipartType(),
writeOptionalTypeParameters(),
getRootHeaders());
serializer.setXop(mtomEnabled);
try {
serializer.writeProlog();
} catch (IOException e) {
throw new Fault(new org.apache.cxf.common.i18n.Message("WRITE_ATTACHMENTS", BUNDLE), e);
}
message.setContent(AttachmentSerializer.class, serializer);