// compute the normalization factor for probabilities not summing up to one
double normalizationFactor = 0d;
for (ActivityEdge edge : node.getOutgoings()) {
try {
ActivityEdgeDecorator edgeDec = (ActivityEdgeDecorator) translator.getDecoratorsFactory().getDecorator(edge);
normalizationFactor += edgeDec.getProbability();
probabilities.put(edge, edgeDec.getProbability());
} catch (InvalidContextException e) {
throw new TranslationException(this, "Unable to visit node \"" + node.getQualifiedName() + "\"", e);
} catch (ClassNotFoundException e) {
throw new TranslationException(this, "Unable to visit node \"" + node.getQualifiedName() + "\"", e);
}