public static void batchRelateAll(
     ModelRoot modelRoot, boolean notifyChanges, boolean searchAllRoots, boolean relateProxies) {
   InstanceList instances = modelRoot.getInstanceList(InstanceStateMachine_c.class);
   synchronized (instances) {
     Iterator<NonRootModelElement> cursor = instances.iterator();
     while (cursor.hasNext()) {
       final InstanceStateMachine_c inst = (InstanceStateMachine_c) cursor.next();
       inst.batchRelate(modelRoot, relateProxies, notifyChanges, searchAllRoots);
     }
   }
 }
 public void batchRelate(ModelRoot modelRoot, boolean notifyChanges, boolean searchAllRoots) {
   batchRelate(modelRoot, false, notifyChanges, searchAllRoots);
 }