//
// contentMsg.getInterceptorChain().resume();
//ORIGINAL END
//PATCH 1 START
DelegatingOutputStream delegate = (DelegatingOutputStream) contentMsg.getContent(OutputStream.class);
if (delegate != null)
{
out.write(((ByteArrayOutputStream) delegate.getOutputStream()).toByteArray());
delegate.setOutputStream(out);
}
out.flush();
if (contentMsg.getInterceptorChain() != null)