for (Value alternativeValue : alternativeValues) {
TargetValue targetValue;
// do ordinal transformation
if (transformer instanceof OrdinalTransformer) {
OrdinalTransformer ordTrans = (OrdinalTransformer) transformer;
if (alternativeValue instanceof IOrdinalValue) {
try {
targetValue = ordTrans.transform((IOrdinalValue) alternativeValue);
} catch (NullPointerException e) {
log.warn("Measurement of leaf doesn't match with OrdinalTransformer! Ignoring it!");
log.warn("MeasuredValue-id: " + alternativeValue.getId() + "; Transformer-id: "
+ ordTrans.getId());
// FIXME: this is a workaround for a strange bug
// described in changeset 4342
skipAlternativeBecauseOfErrors = true;
continue;
}