* @param path the name of the output resource (file, uri, url)
*/
protected void writeMessageContent(MessageExchange exchange, NormalizedMessage message, OutputStream out, String path) throws MessagingException {
Source content = message.getContent();
if (content == null) {
throw new NoMessageContentAvailableException(exchange);
}
try {
getTransformer().toResult(content, new StreamResult(out));
} catch (TransformerException e) {
throw new MessagingException(e);