class OntologyAlgorithm {

  public static Set<TermId> getAncestorTerms(
      Ontology ontology,
      TermId rootTerm,
      Set<TermId> children,
      boolean includeOriginalTerm) {
    ImmutableOntology subontology =
        (ImmutableOntology) ontology.subOntology(rootTerm);
    return getAncestorTerms(subontology, children, includeOriginalTerm);
  }

  private  OntologyAlgorithm();

}