public static ImmutableSet<String> getAncestors(String conceptName, Set<String> parents) {
List<String> result = new ArrayList<String>();
result.add(conceptName);
ConceptRegistry conceptRegistry = ConceptRegistry.getInstance();
for (String parent : parents) {
<BUG>result.addAll(conceptRegistry.getConceptDescriptor(parent).getAncestorsNames());
</BUG>
}
return ImmutableSet.copyOf(result);
}

public static ImmutableSet<String> getAncestors(String conceptName, Set<String> parents) {
List<String> result = new ArrayList<String>();
result.add(conceptName);
ConceptRegistry conceptRegistry = ConceptRegistry.getInstance();
for (String parent : parents) {
result.addAll(conceptRegistry.getConceptDescriptor(parent).structure().getAncestorsNames());
}
return ImmutableSet.copyOf(result);
