message.setContent(Writer.class,null);
}
}
if (null != os) {
final CacheAndWriteOutputStream newOut = new CacheAndWriteOutputStream(os);
message.setContent(OutputStream.class, newOut);
if (os != null && logMessageContent) {
message.setContent(CachedOutputStream.class, newOut);
}
if (wireTap != null) {
newOut.registerCallback(new CallBack(message));
}
}
}