public void unrelateAcrossR9600From(Query_c target, boolean notifyChanges) {
    if (target == null) return;

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

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

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

    if (IsSupertypeQuery != null) {

      m_id = IsSupertypeQuery.getId();
      IsSupertypeQuery = null;
      target.removeRef();
      if (notifyChanges) {
        RelationshipChangeModelDelta change =
            new RelationshipChangeModelDelta(
                Modeleventnotification_c.DELTA_ELEMENT_UNRELATED, this, target, "9600", "");
        Ooaofooa.getDefaultInstance().fireModelElementRelationChanged(change);
      }
    }
  }
  public void relateAcrossR9600To(Query_c target, boolean notifyChanges) {
    if (target == null) return;

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

    if (IsSupertypeQuery != target) {

      Object oldKey = getInstanceKey();

      if (IsSupertypeQuery != null) {

        IsSupertypeQuery.clearBackPointerR9600To(this);

        if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == true) { // $NON-NLS-1$
          Ooaofooa.log.println(
              ILogger.CONSISTENCY,
              "DescriptionQuery_c.relateAcrossR9600To(Query_c target)",
              "Relate performed across R9600 from Description Query to Query without unrelate of prior instance.");
        }
      }

      IsSupertypeQuery = target;
      m_id = target.getId();
      updateInstanceKey(oldKey, getInstanceKey());
      target.setBackPointerR9600To(this);
      target.addRef();
      if (notifyChanges) {
        RelationshipChangeModelDelta change =
            new RelationshipChangeModelDelta(
                Modeleventnotification_c.DELTA_ELEMENT_RELATED, this, target, "9600", "");
        Ooaofooa.getDefaultInstance().fireModelElementRelationChanged(change);
      }
    }
  }