public void unrelateAcrossR25From(GraphicalElement_c target, boolean notifyChanges) {
    if (target == null) return;

    if (IsMovingGraphicalElement == null) return; // already unrelated

    if (target != IsMovingGraphicalElement) {
      Exception e = new Exception();
      e.fillInStackTrace();
      CanvasPlugin.logError("Tried to unrelate from non-related instance across R25", e);
      return;
    }

    if (target != null) {
      target.clearBackPointerR25To(this);
    }

    if (IsMovingGraphicalElement != null) {

      m_elementid = IsMovingGraphicalElement.getElementid();
      if (IdAssigner.NULL_UUID.equals(m_elementid)) {
        m_elementid = IsMovingGraphicalElement.getElementidCachedValue();
      }
      IsMovingGraphicalElement = null;
      target.removeRef();
      if (notifyChanges) {
        RelationshipChangeModelDelta change =
            new RelationshipChangeModelDelta(
                Modeleventnotification_c.DELTA_ELEMENT_UNRELATED, this, target, "25", "");
        Ooaofgraphics.getDefaultInstance().fireModelElementRelationChanged(change);
      }
    }
  }
  public void relateAcrossR25To(GraphicalElement_c target, boolean notifyChanges) {
    if (target == null) return;

    if (target == IsMovingGraphicalElement) return; // already related

    if (IsMovingGraphicalElement != target) {

      Object oldKey = getInstanceKey();

      if (IsMovingGraphicalElement != null) {

        IsMovingGraphicalElement.clearBackPointerR25To(this);

        if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == true) { // $NON-NLS-1$
          Ooaofgraphics.log.println(
              ILogger.CONSISTENCY,
              "ElementInMove_c.relateAcrossR25To(GraphicalElement_c target)",
              "Relate performed across R25 from Element In Move to Graphical Element without unrelate of prior instance.");
        }
      }

      IsMovingGraphicalElement = target;
      if (IdAssigner.NULL_UUID.equals(target.getElementid())) {
        // do not update cached value
      } else {
        // update cached value
        m_elementid = target.getElementidCachedValue();
      }
      updateInstanceKey(oldKey, getInstanceKey());
      target.setBackPointerR25To(this);
      target.addRef();
      if (notifyChanges) {
        RelationshipChangeModelDelta change =
            new RelationshipChangeModelDelta(
                Modeleventnotification_c.DELTA_ELEMENT_RELATED, this, target, "25", "");
        Ooaofgraphics.getDefaultInstance().fireModelElementRelationChanged(change);
      }
    }
  }