throws IllegalArgumentException, ProcessingException {
try {
CharArrayWriter writer = new CharArrayWriter();
StreamResult result = new StreamResult(writer);
XSLTProcessor transformer
= (XSLTProcessor) componentManager.lookup(XSLTProcessor.ROLE);
try {
transformer.transform(this, stylesheet, params, result);
} finally {
componentManager.release(transformer);
}
return new XScriptObjectResult(xscriptManager, writer.toString());