if (xmlScript == null)
xmlScript = new String(xmlScriptRaw, "UTF-8");
log.info(id + " Processing script: " + xmlScript);
java.io.Reader reader = new java.io.StringReader(xmlScript);
java.io.ByteArrayOutputStream outStream = new java.io.ByteArrayOutputStream();
XmlScriptClient interpreter = new XmlScriptClient(this.glob, this.xmlBlasterAccess, this,
null, outStream);
interpreter.setThrowAllExceptions(true);
interpreter.parse(reader);
byte[] bytes = outStream.toByteArray();
out.write(new String(bytes, "UTF-8"));
// Processing script: <xmlBlaster><disconnect><qos></qos></disconnect></xmlBlaster>
// Unfortunately on disconnect() the toDead() is not triggered, so detect it here (Hack:)