Script script = parser.parse(in);
script = script.compile();
log.debug("Found: " + script);
assertTrue("Parsed a Script", script instanceof Script);
StringWriter buffer = new StringWriter();
script.run(parser.getContext(), XMLOutput.createXMLOutput(buffer));
String text = buffer.toString().trim();
if (log.isDebugEnabled()) {
log.debug("Evaluated script as...");
log.debug(text);
}