th.setResult(new SAXResult(ser));
org.xml.sax.helpers.AttributesImpl atl = new org.xml.sax.helpers.AttributesImpl();
atl.addAttribute("","name","name", "CDATA", channelName);
// add other attributes: hasHelp, hasAbout, hasEdit
th.startDocument();
th.startElement("","channel","channel", atl);
ChannelSAXStreamFilter custodian = new ChannelSAXStreamFilter(th);
int out=cr.outputRendering(custodian);
if(out==IChannelRenderer.RENDERING_TIMED_OUT) {
throw new InternalTimeoutException("The channel has timed out");
}