if (null == goalItem) {
goalItem = new HGNode(0, sentenceLength + 1, this.goalSymID, null, dt, logP + finalTransitionLogP);
this.sortedNodes.add(goalItem);
} else {
goalItem.addHyperedgeInNode(dt);
}
} // End if item.lhs == this.goalSymID
} // End foreach Item in bin.get_sorted_items()