// run orthologize
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();