if (generateUnitStates) {
arc = new LexTreeUnitState(hmmNode, getWordHistory(), previous
.getSmearTerm(), smearProbability, languageProbability,
insertionProbability, collapsed);
} else {
HMM hmm = hmmNode.getHMM();
arc = new LexTreeHMMState(hmmNode, getWordHistory(), previous
.getSmearTerm(), smearProbability, hmm.getInitialState(),
languageProbability, insertionProbability, null, collapsed);
}
return arc;
}