(Offset) relation);
sourceApplicableElement.getOutgoingOffsetRelations().add(
(Offset) relation);
}
if (relation instanceof Refinement) {
Element targetElement = getElement(targetApplicableElement);
if (isLeafElement(targetElement)) {
// remove leaf element from cache
if (!isLeaf(targetElement)) {
leafElements.remove(targetElement);
}
}
Element sourceElement = getElement(sourceApplicableElement);
if (isRootElement(sourceElement)) {
// remove leaf element from cache
if (!isRoot(sourceElement)) {
rootElements.remove(sourceElement);