Integer newMasterId = (Integer) biobjIdAss.get(masterid);
Integer newSubId = (Integer) biobjIdAss.get(subid);
// build a new SbiSubreport
// build a new id for the SbiSubreport
SbiSubreportsId sbiSubReportsId = objlink.getId();
SbiSubreportsId newSubReportsId = new SbiSubreportsId();
if (sbiSubReportsId != null) {
SbiObjects master = sbiSubReportsId.getMasterReport();
SbiObjects sub = sbiSubReportsId.getMasterReport();
SbiObjects newMaster = ImportUtilities.makeNewSbiObject(master, newMasterId);
SbiObjects newSub = ImportUtilities.makeNewSbiObject(sub, newSubId);
newSubReportsId.setMasterReport(newMaster);
newSubReportsId.setSubReport(newSub);
}
SbiSubreports newSubReport = new SbiSubreports();
newSubReport.setId(newSubReportsId);
// check if the association between metadata already exist
Map unique = new HashMap();