public void generate() throws SAXException {
// Obtain the fragmentID (which is simply the filename portion of the source)
getLogger().debug("FragmentExtractorGenerator retrieving document " + source + ".");
Store store = null;
XMLDeserializer deserializer = null;
Object fragment = null;
try {
store = (Store) this.manager.lookup(Store.TRANSIENT_STORE);
fragment = store.get(source);
if (fragment==null)
throw new SAXException("Could not find frament with id " + source + " in store");
deserializer = (XMLDeserializer) this.manager.lookup(XMLDeserializer.ROLE);
deserializer.setConsumer(this.xmlConsumer);
deserializer.deserialize(fragment);
} catch (ServiceException ce) {
getLogger().error("Could not lookup for component.", ce);
throw new SAXException("Could not lookup for component.", ce);
} finally