//END hack that needs to be replaced by something like:
// EntryFactory ef = this.manager.lookup(EntryFactory.ROLE);
Entry rootEntry = ef.getRootEntry(this.startLocation);
//get a reader
HierarchyReader hr = new HierarchyReader();
hr.setDepth(this.theDepth);
// get going
hr.setContentHandler(this.contentHandler);
hr.startReading(rootEntry);
getLogger().debug("hierachy generator stop generate()");
} catch (Exception e){
getLogger().error("Some strange thing just happened", e);
throw new ProcessingException("hierarchy.generate()",e);