* @throws ParseException on bad arguments
*/
private static Message transform(Message original) throws IOException, ParseException {
// Create a copy of the template. The copy can be modified without
// affecting the original.
MessageBuilder builder = new DefaultMessageBuilder();
Message message = builder.newMessage(original);
// In this example we know we have a multipart message. Use
// Message#isMultipart() if uncertain.
Multipart multipart = (Multipart) message.getBody();