public void batchRelate( ModelRoot modelRoot, boolean relateProxies, boolean notifyChanges, boolean searchAllRoots) { InstanceList instances = null; ModelRoot baseRoot = modelRoot; // R301 Graphelement_c relInst21771 = (Graphelement_c) baseRoot.getInstanceList(Graphelement_c.class).get(new Object[] {m_elementid}); // if there was no local element, check for any global elements // failing that proceed to check other model roots if (relInst21771 == null) { relInst21771 = (Graphelement_c) Ooaofooa.getDefaultInstance() .getInstanceList(Graphelement_c.class) .get(new Object[] {m_elementid}); } // synchronized if (relInst21771 != null) { if (relateProxies || !isProxy() || (inSameComponent(this, relInst21771) && !isProxy())) { relInst21771.relateAcrossR301To(this, notifyChanges); } } }