public List<OntologyTerm> getChildren(boolean includeCyclic) { if (children != null) { return children; } try { this.children = new ArrayList<OntologyTerm>(searcher.searchByParentId(id, 0, Integer.MAX_VALUE)); } catch (Exception e) { throw new IllegalStateException("Problem getting children for document: "+id, e); } return children; }
public List<OntologyTerm> getChildren(boolean includeCyclic) { if (children != null) { return children; } this.children = new ArrayList<OntologyTerm>(); try { final QueryResponse queryResponse = searcher.searchByParentId(id, 0, Integer.MAX_VALUE); children.addAll(processChildrenHits(queryResponse, id)); } catch (Exception e) { throw new IllegalStateException("Problem getting children for document: "+id, e); } return children; }