while(itr.hasNext){ ResolvedConceptReference ref = itr.next(); }