nameToTerm.put(termId, item);
    protected void configureItem(String termId, Item item, DagTerm term)        throws ObjectStoreException {        item.addAttribute(new Attribute("name", term.getName()));        item.addReference(new Reference("ontology", ontology.getIdentifier()));        if (term.getId() != null) {            item.addAttribute(new Attribute("identifier", term.getId()));        }        ReferenceList parentRelations = new ReferenceList("parentRelations");        item.addCollection(parentRelations);        ReferenceList childRelations = new ReferenceList("childRelations");        item.addCollection(childRelations);        nameToTerm.put(termId, item);        Iterator iter = term.getChildren().iterator();        while (iter.hasNext()) {            DagTerm subTerm = (DagTerm) iter.next();            Item subItem = process(subTerm);            relate(item, subItem, "is_a");        }        iter = term.getComponents().iterator();        while (iter.hasNext()) {            DagTerm subTerm = (DagTerm) iter.next();            Item subItem = process(subTerm);            relate(item, subItem, "part_of");        }    }