try {
// TODO: On server side the msgInfoParserClassName should be from CbSocketDriver configuration
byte[] msg = msgInfo.createRawMsg(getCbMsgInfoParserClassName());
if (log.isLoggable(Level.FINEST)) log.finest("Sending TCP data of length " + msg.length + " >" + XbfParser.createLiteral(msg) + "<");
if (listener != null) {
listener.progressWrite("", 0, msg.length);
}
else
log.fine("The progress listener is null");
int bytesLeft = msg.length;