public boolean checkConsistency() {
    Ooaofooa.log.println(
        ILogger.OPERATION,
        "Description Query", //$NON-NLS-1$
        " Operation entered: Description Query::checkConsistency"); //$NON-NLS-1$
    if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$
      return true;
    }
    ModelRoot modelRoot = getModelRoot();
    boolean retval = true;
    class DescriptionQuery_c_test39592_c implements ClassQueryInterface_c {
      DescriptionQuery_c_test39592_c(java.util.UUID p39593) {
        m_p39593 = p39593;
      }

      private java.util.UUID m_p39593;

      public boolean evaluate(Object candidate) {
        DescriptionQuery_c selected = (DescriptionQuery_c) candidate;
        boolean retval = false;
        retval = (selected.getId().equals(m_p39593));
        return retval;
      }
    }

    DescriptionQuery_c[] objs39591 =
        DescriptionQuery_c.DescriptionQueryInstances(
            modelRoot, new DescriptionQuery_c_test39592_c(getId()));

    if (((objs39591.length) == 0)) {

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(
            ILogger.CONSISTENCY,
            "Description Query", //$NON-NLS-1$
            "Consistency: Object: Description Query: Cardinality of an identifier is zero. " //$NON-NLS-1$
                + "Actual Value: "
                + Integer.toString(objs39591.length)); // $NON-NLS-1$
      } else {
        Exception e = new Exception();
        CorePlugin.logError(
            "Consistency: Object: Description Query: Cardinality of an identifier is zero. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39591.length),
            e);
      }
      retval = false;
    }

    if (((objs39591.length) > 1)) {

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(
            ILogger.CONSISTENCY,
            "Description Query", //$NON-NLS-1$
            "Consistency: Object: Description Query: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39591.length)
                + " Id: "
                + "Not Printable"); //$NON-NLS-1$
      } else {
        Exception e = new Exception();
        CorePlugin.logError(
            "Consistency: Object: Description Query: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39591.length)
                + " Id: "
                + "Not Printable",
            e); //$NON-NLS-1$
      }
      retval = false;
    }

    // Description Query is a subtype in association: rel.Numb = 9600
    // The supertype class is: Query
    class Query_c_test39597_c implements ClassQueryInterface_c {
      Query_c_test39597_c(java.util.UUID p39598) {
        m_p39598 = p39598;
      }

      private java.util.UUID m_p39598;

      public boolean evaluate(Object candidate) {
        Query_c selected = (Query_c) candidate;
        boolean retval = false;
        retval = (selected.getId().equals(m_p39598));
        return retval;
      }
    }

    Query_c[] objs39596 = Query_c.QueryInstances(modelRoot, new Query_c_test39597_c(getId()));

    if (((objs39596.length) != 1)) {

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(
            ILogger.CONSISTENCY,
            "Description Query", //$NON-NLS-1$
            "Consistency: Object: Description Query: Association: 9600: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$
                + "Actual Value: "
                + Integer.toString(objs39596.length)); // $NON-NLS-1$
      } else {
        Exception e = new Exception();
        CorePlugin.logError(
            "Consistency: Object: Description Query: Association: 9600: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39596.length),
            e);
      }
      retval = false;
    }

    return retval;
  }