public static DataTypeInPackage_c resolveInstance( ModelRoot modelRoot, java.util.UUID p_m_package_id, java.util.UUID p_m_dt_id) { InstanceList instances = modelRoot.getInstanceList(DataTypeInPackage_c.class); DataTypeInPackage_c source = null; synchronized (instances) { Object[] key = {p_m_package_id, p_m_dt_id}; source = (DataTypeInPackage_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_package_id = IdAssigner.preprocessUUID(p_m_package_id); // pre-process the uuid so that we re-use null uuid instance rather then creating a new one. source.m_dt_id = IdAssigner.preprocessUUID(p_m_dt_id); return source; } } // there is no instance matching the id DataTypeInPackage_c new_inst = new DataTypeInPackage_c(modelRoot, p_m_package_id, p_m_dt_id); return new_inst; }