public static ComponentInComponent_c resolveInstance( ModelRoot modelRoot, java.util.UUID p_m_id, java.util.UUID p_m_parent_id) { InstanceList instances = modelRoot.getInstanceList(ComponentInComponent_c.class); ComponentInComponent_c source = null; synchronized (instances) { Object[] key = {p_m_id}; source = (ComponentInComponent_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_id = IdAssigner.preprocessUUID(p_m_id); // extract 28 bit value only source.m_idLongBased = 0xfffffff & p_m_id.getLeastSignificantBits(); // pre-process the uuid so that we re-use null uuid instance rather then creating a new one. source.m_parent_id = IdAssigner.preprocessUUID(p_m_parent_id); return source; } } // there is no instance matching the id ComponentInComponent_c new_inst = new ComponentInComponent_c(modelRoot, p_m_id, p_m_parent_id); return new_inst; }