SetOfClasses eqclasses = ontologyHandler.equivalentClasses(classExp);
int i = 1;
Iterator<OWLClass> eqiIterator = eqclasses.iterator();
while(eqiIterator.hasNext()){
OWLClass eqClass = eqiIterator.next();
compositeList.add(new CompositeDetails(""+(i++), eqClass.toStringID(), "Existing composites").getLightWeightContact());
}
if (eqclasses.isEmpty()){
OWLClass eqClass = ontologyHandler.addNewClass(classExp);
compositeList.add(new CompositeDetails(""+(i++), eqClass.toStringID(), "Newly added").getLightWeightContact());
}
return compositeList;
}