*
* @throws EMFUserError
*/
private void importParuseCheck(Integer paruseOldId) throws EMFUserError {
logger.debug("IN");
SbiParuseCk paruseck = null;
try {
List exportedParuseChecks = importer.getFilteredExportedSbiObjects(sessionExpDB, "SbiParuseCk", "id.sbiParuse", paruseOldId);
Iterator iterSbiParuseChecks = exportedParuseChecks.iterator();
while (iterSbiParuseChecks.hasNext()) {
paruseck = (SbiParuseCk) iterSbiParuseChecks.next();
// get ids of exported paruse and check associzted
Integer paruseid = paruseck.getId().getSbiParuse().getUseId();
Integer checkid = paruseck.getId().getSbiChecks().getCheckId();
// get association of checks and paruses
Map paruseIdAss = metaAss.getParuseIDAssociation();
Map checkIdAss = metaAss.getCheckIDAssociation();
// try to get from association the id associate to the exported
// metadata
Integer newParuseid = (Integer) paruseIdAss.get(paruseid);
Integer newCheckid = (Integer) checkIdAss.get(checkid);
// build a new paruse check
SbiParuseCk newParuseCk = ImportUtilities.makeNewSbiParuseCk(paruseck, newParuseid, newCheckid);
// check if the association between metadata already exist
Map unique = new HashMap();
unique.put("paruseid", newParuseid);
unique.put("checkid", newCheckid);
Object existObj = importer.checkExistence(unique, sessionCurrDB, new SbiParuseCk());
if (existObj == null) {
sessionCurrDB.save(newParuseCk);
metaLog.log("Inserted new association between paruse " + paruseck.getId().getSbiParuse().getName()
+ " and check " + paruseck.getId().getSbiChecks().getName());
}