if (tx().getConfiguration().isSingleThreaded()) {
addedRelations=new SimpleAddedRelations();
} else {
synchronized (this) {
if (addedRelations==AddedRelationsContainer.EMPTY)
addedRelations=new ConcurrentAddedRelations();
}
}
}
if (addedRelations.add(r)) {
updateLifeCycle(ElementLifeCycle.Event.ADDED_RELATION);