readInTargets(m);
} catch (TreeMapperException ex) {
if (invalid == null) {
invalid = Lists.newArrayList();
}
invalid.add(new InvalidMapping(m, ex.getMessage()));
}
}
} else { // this patch refresh and remove the spurious mappings
List<NodeMapping> old = KongaListUtils.asList(mappings);
for (NodeMapping nm : old) {
try {
readInTargets(nm);
} catch (TreeMapperException ex) {
if (invalid == null) {
invalid = Lists.newArrayList();
}
invalid.add(new InvalidMapping(nm, ex.getMessage()));
}
}
}
InvalidMapping[] conflicts = getInvalidMappings();
for (InvalidMapping conflict : conflicts) {