logger.debug("Getting InputStream for class " + javadocClass.getFullyQualifiedName());
}
// Serialize the SAX events to the XMLSerializer:
XMLSerializer serializer = new XMLSerializer();
//ComponentSelector serializerSelector = null;
ByteArrayInputStream inputStream = null;
try {
//serializerSelector = (ComponentSelector) manager.lookup(Serializer.ROLE + "Selector");
//logger.debug("serializer selector: " + serializerSelector.toString());
//serializer = (XMLSerializer) serializerSelector.select(XMLSerializer.class);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(2048);
serializer.setOutputStream(outputStream);
toSAX(serializer);
inputStream = new ByteArrayInputStream(outputStream.toByteArray());
//} catch (ComponentException ce) {
// logger.error("Component not found: " + XMLSerializer.ROLE, ce);
// throw new SourceException("Component lookup of XMLSerializer failed!", ce);