Iterator iterExpEngines = expEngineIds.iterator();
while(iterExpEngines.hasNext()){
String expEngineId = (String)iterExpEngines.next();
String engineAssociateId = (String)request.getAttribute("engineAssociated"+expEngineId);
if(!engineAssociateId.trim().equals("")) {
metaAss.insertCoupleEngine(new Integer(expEngineId), new Integer(engineAssociateId));
// insert into user associations
try{
Object existingEngineObj = impManager.getExistingObject(new Integer(engineAssociateId), SbiEngines.class);
Object exportedEngineObj = impManager.getExportedObject(new Integer(expEngineId), SbiEngines.class);
if( (existingEngineObj!=null) && (exportedEngineObj!=null) ) {