Kam kam = kam(kamName);
KamInfo info = kam.getKamInfo();
KAMStore kamstore = kamstore();
Orthologize ortho = new DefaultOrthologize();
SpeciesDialect dialect = dialect(taxId, info, kamstore);
OrthologizedKam orthokam = ortho.orthologize(kam, kamstore, dialect);
// remap collapsing nodes
kam = kam(kamName);
info = kam.getKamInfo();
Map<KamNode, KamNode> collapsed = orthokam.getCollapsedNodes();
Set<Entry<KamNode, KamNode>> set = collapsed.entrySet();
for (Entry<KamNode, KamNode> e : set) {
KamNode collapsing = e.getKey();
KamNode collapseTo = e.getValue();