repairReferences.add(bob);
}
}
for (BaseOBObject objectToRepair : repairReferences) {
if (objectToRepair instanceof TreeNode) {
final TreeNode tn = (TreeNode) objectToRepair;
final Entity entity = ModelProvider.getInstance().getEntityFromTreeType(
tn.getTree().getTypeArea());
if (entity == null) {
if (ir.getWarningMessages() == null) {
ir.setWarningMessages("Imported tree nodes belong to a tree with a tree type "
+ tn.getTree().getTypeArea() + " which is not related to any entity.");
} else {
ir.setWarningMessages(ir.getWarningMessages()
+ "\nImported tree nodes belong to a tree with a tree type "
+ tn.getTree().getTypeArea() + " which is not related to any entity.");
}
continue;
}
}
for (Property p : PrimitiveReferenceHandler.getInstance().getPrimitiveReferences(