public OutlineNode getOutline(int resourceId, String linkLabel) throws ZenoException { List articles = new ArrayList(); Article art = (Article) factory.loadResource(resourceId); articles.add(art); List nodes = getOutline(articles, linkLabel, -1); return (OutlineNode) nodes.get(0); }