public static Graphnode_c resolveInstance( ModelRoot modelRoot, float p_m_width, float p_m_height, java.util.UUID p_m_elementid) { InstanceList instances = modelRoot.getInstanceList(Graphnode_c.class); Graphnode_c source = null; synchronized (instances) { Object[] key = {p_m_elementid}; source = (Graphnode_c) instances.get(key); if (source != null && !modelRoot.isCompareRoot()) { source.convertFromProxy(); source.batchUnrelate(); source.m_width = p_m_width; source.m_height = p_m_height; // pre-process the uuid so that we re-use null uuid instance rather then creating a new one. source.m_elementid = IdAssigner.preprocessUUID(p_m_elementid); return source; } } // there is no instance matching the id Graphnode_c new_inst = new Graphnode_c(modelRoot, p_m_width, p_m_height, p_m_elementid); return new_inst; }