public void referencedElementRemoved ( ModelElementInstance referenceTargetElement , Object referenceIdentifier ) { for ( ModelElementInstance referenceSourceElement : findReferenceSourceElements ( referenceTargetElement ) ) { if ( referenceIdentifier . equals ( getReferenceIdentifier ( referenceSourceElement ) ) ) { removeReference ( referenceSourceElement , referenceTargetElement ) ; } } }
Remove the reference if the target element is removed