MsgUnitRaw msgUnitRaw = new MsgUnitRaw(msgUnit.getKey(), msgUnit.getContent(), msgUnit.getQos());
MsgInfo msgInfo = new MsgInfo(this.global, MsgInfo.INVOKE_BYTE, MethodName.UPDATE_ONEWAY, this.slaveSessionId);
msgInfo.addMessage(msgUnitRaw);
XmlScriptParser parser = new XmlScriptParser();
parser.init(new Global(), null, null);
fos.write(parser.toLiteral(msgInfo).getBytes());
fos.close();
log.info("MsgUnit '" + msgUnit.getQosData().getRcvTimestamp().getTimestamp() + "' has been written to file '" + file.getAbsolutePath() + "'");
return completeSubdirName;
}