public static BridgeInvocation_c createProxy(
     ModelRoot modelRoot,
     java.util.UUID p_m_statement_id,
     java.util.UUID p_m_brg_id,
     int p_m_bridgenamelinenumber,
     int p_m_bridgenamecolumn,
     int p_m_externalentitykeyletterslinenumber,
     int p_m_externalentitykeyletterscolumn,
     String p_contentPath,
     IPath p_localPath) {
   ModelRoot resolvedModelRoot = ModelRoot.findModelRoot(modelRoot, p_contentPath, p_localPath);
   // if a model root was not resolved it is most likely
   // due to a missing file of the proxy, defualt back to
   // the original model root
   if (resolvedModelRoot != null) modelRoot = resolvedModelRoot;
   InstanceList instances = modelRoot.getInstanceList(BridgeInvocation_c.class);
   BridgeInvocation_c new_inst = null;
   synchronized (instances) {
     Object[] key = {p_m_statement_id};
     new_inst = (BridgeInvocation_c) instances.get(key);
   }
   String contentPath = PersistenceUtil.resolveRelativePath(p_localPath, new Path(p_contentPath));
   if (modelRoot.isNewCompareRoot()) {
     // for comparisons we do not want to change
     // the content path
     contentPath = p_contentPath;
   }
   if (new_inst != null && !modelRoot.isCompareRoot()) {
     PersistableModelComponent pmc = new_inst.getPersistableComponent();
     if (pmc == null) {
       // dangling reference, redo this instance
       new_inst.batchUnrelate();
       // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
       new_inst.m_statement_id = IdAssigner.preprocessUUID(p_m_statement_id);
       // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
       new_inst.m_brg_id = IdAssigner.preprocessUUID(p_m_brg_id);
       new_inst.m_bridgenamelinenumber = p_m_bridgenamelinenumber;
       new_inst.m_bridgenamecolumn = p_m_bridgenamecolumn;
       new_inst.m_externalentitykeyletterslinenumber = p_m_externalentitykeyletterslinenumber;
       new_inst.m_externalentitykeyletterscolumn = p_m_externalentitykeyletterscolumn;
     }
   }
   if (new_inst == null) {
     // there is no instance matching the id, create a proxy
     // if the resource doesn't exist then this will be a dangling reference
     new_inst =
         new BridgeInvocation_c(
             modelRoot,
             p_m_statement_id,
             p_m_brg_id,
             p_m_bridgenamelinenumber,
             p_m_bridgenamecolumn,
             p_m_externalentitykeyletterslinenumber,
             p_m_externalentitykeyletterscolumn);
     new_inst.m_contentPath = contentPath;
   }
   return new_inst;
 }
 public static void batchRelateAll(
     ModelRoot modelRoot, boolean notifyChanges, boolean searchAllRoots, boolean relateProxies) {
   InstanceList instances = modelRoot.getInstanceList(BridgeInvocation_c.class);
   synchronized (instances) {
     Iterator<NonRootModelElement> cursor = instances.iterator();
     while (cursor.hasNext()) {
       final BridgeInvocation_c inst = (BridgeInvocation_c) cursor.next();
       inst.batchRelate(modelRoot, relateProxies, notifyChanges, searchAllRoots);
     }
   }
 }
  // end declare accessors
  public static void checkClassConsistency(ModelRoot modelRoot) {
    Ooaofooa.log.println(
        ILogger.OPERATION,
        "Bridge Invocation", //$NON-NLS-1$
        " Operation entered: Bridge Invocation::checkClassConsistency"); //$NON-NLS-1$
    if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$
      return;
    }
    BridgeInvocation_c[] objs =
        BridgeInvocation_c.BridgeInvocationInstances(modelRoot, null, false);

    for (int i = 0; i < objs.length; i++) {
      objs[i].checkConsistency();
    }
  }
  public static BridgeInvocation_c resolveInstance(
      ModelRoot modelRoot,
      java.util.UUID p_m_statement_id,
      java.util.UUID p_m_brg_id,
      int p_m_bridgenamelinenumber,
      int p_m_bridgenamecolumn,
      int p_m_externalentitykeyletterslinenumber,
      int p_m_externalentitykeyletterscolumn) {
    InstanceList instances = modelRoot.getInstanceList(BridgeInvocation_c.class);
    BridgeInvocation_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_statement_id};
      source = (BridgeInvocation_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_statement_id = IdAssigner.preprocessUUID(p_m_statement_id);
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_brg_id = IdAssigner.preprocessUUID(p_m_brg_id);
        source.m_bridgenamelinenumber = p_m_bridgenamelinenumber;
        source.m_bridgenamecolumn = p_m_bridgenamecolumn;
        source.m_externalentitykeyletterslinenumber = p_m_externalentitykeyletterslinenumber;
        source.m_externalentitykeyletterscolumn = p_m_externalentitykeyletterscolumn;

        return source;
      }
    }
    // there is no instance matching the id
    BridgeInvocation_c new_inst =
        new BridgeInvocation_c(
            modelRoot,
            p_m_statement_id,
            p_m_brg_id,
            p_m_bridgenamelinenumber,
            p_m_bridgenamecolumn,
            p_m_externalentitykeyletterslinenumber,
            p_m_externalentitykeyletterscolumn);
    return new_inst;
  }
 public boolean evaluate(Object candidate) {
   BridgeInvocation_c selected = (BridgeInvocation_c) candidate;
   boolean retval = false;
   retval = (selected.getStatement_id().equals(m_p40376));
   return retval;
 }
  public boolean checkConsistency() {
    Ooaofooa.log.println(
        ILogger.OPERATION,
        "Bridge Invocation", //$NON-NLS-1$
        " Operation entered: Bridge Invocation::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 BridgeInvocation_c_test40375_c implements ClassQueryInterface_c {
      BridgeInvocation_c_test40375_c(java.util.UUID p40376) {
        m_p40376 = p40376;
      }

      private java.util.UUID m_p40376;

      public boolean evaluate(Object candidate) {
        BridgeInvocation_c selected = (BridgeInvocation_c) candidate;
        boolean retval = false;
        retval = (selected.getStatement_id().equals(m_p40376));
        return retval;
      }
    }

    BridgeInvocation_c[] objs40374 =
        BridgeInvocation_c.BridgeInvocationInstances(
            modelRoot, new BridgeInvocation_c_test40375_c(getStatement_id()));

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

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

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

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

    // Bridge Invocation is a subtype in association: rel.Numb = 603
    // The supertype class is: Statement
    class Statement_c_test40380_c implements ClassQueryInterface_c {
      Statement_c_test40380_c(java.util.UUID p40381) {
        m_p40381 = p40381;
      }

      private java.util.UUID m_p40381;

      public boolean evaluate(Object candidate) {
        Statement_c selected = (Statement_c) candidate;
        boolean retval = false;
        retval = (selected.getStatement_id().equals(m_p40381));
        return retval;
      }
    }

    Statement_c[] objs40379 =
        Statement_c.StatementInstances(modelRoot, new Statement_c_test40380_c(getStatement_id()));

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

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

    // Bridge Invocation is a referring class in association: rel.Numb = 674
    // The participating class is: Bridge
    class Bridge_c_test40383_c implements ClassQueryInterface_c {
      Bridge_c_test40383_c(java.util.UUID p40384) {
        m_p40384 = p40384;
      }

      private java.util.UUID m_p40384;

      public boolean evaluate(Object candidate) {
        Bridge_c selected = (Bridge_c) candidate;
        boolean retval = false;
        retval = (selected.getBrg_id().equals(m_p40384));
        return retval;
      }
    }

    Bridge_c[] objs40382 =
        Bridge_c.BridgeInstances(modelRoot, new Bridge_c_test40383_c(getBrg_id()));

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

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(
            ILogger.CONSISTENCY,
            "Bridge Invocation", //$NON-NLS-1$
            "Consistency: Object: Bridge Invocation: Association: 674: Cardinality of a participant is greater than 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs40382.length)
                + " Brg_ID: "
                + "Not Printable"); //$NON-NLS-1$
      } else {
        Exception e = new Exception();
        CorePlugin.logError(
            "Consistency: Object: Bridge Invocation: Association: 674: Cardinality of a participant is greater than 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs40382.length)
                + " Brg_ID: "
                + "Not Printable",
            e); //$NON-NLS-1$
      }
      retval = false;
    }

    // Bridge Invocation is a participating class in association: rel.Numb = 628
    // Object: Actual Parameter
    return retval;
  }