if (!(cb instanceof RetransmissionCallback)) {
((CachedOutputStream)os).registerCallback(cb);
}
}
}
CachedOutputStream content = (CachedOutputStream)message
.get(RMMessageConstants.SAVED_CONTENT);
if (null == content) {
LOG.log(Level.WARNING, "Assuming the message has been acknowledged and released, skipping resend.");
} else {
InputStream bis = content.getInputStream();
if (LOG.isLoggable(Level.FINE)) {
if (content.size() < 65536) {
LOG.fine("Using saved output stream: "
+ IOUtils.newStringFromBytes(content.getBytes()));
} else {
LOG.fine("Using saved output stream: ...");
}
}