if(userroles != null){
for(int i= 0; i< userroles.size(); i++){
SourceBean role = userroles.get(i);
String name = (String)role.getAttribute("name");
SbiExtUserRoles sbiExtUserRole = new SbiExtUserRoles();
SbiExtUserRolesId id = new SbiExtUserRolesId();
Integer extRoleId = rolesLookup.get(name);
int userIdInt= idUser.intValue();
id.setExtRoleId(extRoleId);//role Id
id.setId(userIdInt);//user ID
sbiExtUserRole.setId(id);
sbiExtUserRole.setSbiUser(sbiUser);
userDAO.updateSbiUserRoles(sbiExtUserRole);