writeBodyPart(outStream, createMimeBodyPart(binaryNode),
boundary);
}
finishWritingMime(outStream);
} catch (IOException e) {
throw new OMException("Problem with the OutputStream.", e);
} catch (MessagingException e) {
throw new OMException("Problem writing Mime Parts.", e);
}
}