public static DescriptionQuery_c resolveInstance(ModelRoot modelRoot, java.util.UUID p_m_id) { InstanceList instances = modelRoot.getInstanceList(DescriptionQuery_c.class); DescriptionQuery_c source = null; synchronized (instances) { Object[] key = {p_m_id}; source = (DescriptionQuery_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); return source; } } // there is no instance matching the id DescriptionQuery_c new_inst = new DescriptionQuery_c(modelRoot, p_m_id); return new_inst; }