Iterator iterExpRoles = expRoleIds.iterator();
while(iterExpRoles.hasNext()){
String expRoleId = (String)iterExpRoles.next();
String roleAssociateId = (String)request.getAttribute("roleAssociated"+expRoleId);
if(!roleAssociateId.trim().equals("")) {
metaAss.insertCoupleRole(new Integer(expRoleId), new Integer(roleAssociateId));
// insert into user associations
try{
Object existingRoleObj = impManager.getExistingObject(new Integer(roleAssociateId), SbiExtRoles.class);
Object exportedRoleObj = impManager.getExportedObject(new Integer(expRoleId), SbiExtRoles.class);
if( (existingRoleObj!=null) && (exportedRoleObj!=null) ) {