public InputStream getInputStream() throws IOException, SourceNotFoundException {
ComponentManager sitemapManager = CocoonComponentManager.getSitemapComponentManager();
ComponentSelector serializerSelector = null;
Serializer serializer = null;
try {
serializerSelector = (ComponentSelector) sitemapManager.lookup(Serializer.ROLE+"Selector");
serializer = (Serializer) serializerSelector.select("html");
ByteArrayOutputStream os = new ByteArrayOutputStream();
serializer.setOutputStream(os);
this.toSAX(serializer);
return new ByteArrayInputStream(os.toByteArray());