+ " because it has been associated to an existing engine or it has the same label "
+ " of an existing engine");
continue;
}
SbiEngines newEng = ImportUtilities.makeNewSbiEngine(engine);
SbiDomains engineTypeDomain = engine.getEngineType();
Map uniqueEngineType = new HashMap();
uniqueEngineType.put("valuecd", engineTypeDomain.getValueCd());
uniqueEngineType.put("domaincd", "ENGINE_TYPE");
SbiDomains existEngineTypeDomain = (SbiDomains) importer.checkExistence(uniqueEngineType,
sessionCurrDB, new SbiDomains());
if (existEngineTypeDomain != null) {
newEng.setEngineType(existEngineTypeDomain);
}
SbiDomains biobjectTypeDomain = engine.getBiobjType();
Map uniqueBiobjectType = new HashMap();
uniqueBiobjectType.put("valuecd", biobjectTypeDomain.getValueCd());
uniqueBiobjectType.put("domaincd", "BIOBJ_TYPE");
SbiDomains existBiobjectTypeDomain = (SbiDomains) importer.checkExistence(uniqueBiobjectType,
sessionCurrDB, new SbiDomains());
if (existBiobjectTypeDomain != null) {
newEng.setBiobjType(existBiobjectTypeDomain);
}
// check datasource link
SbiDataSource expDs = engine.getDataSource();