int u = 0;
while (iter2.hasNext()) {
values[u++] = ((Integer)iter2.next()).intValue();
}
VarSet setVar = variableSet("indexVarSet for "+indexVar.getName(), values);
Constraint c = new ConstraintElementAtOnSets(setVar,sets,indexVar);
c.post();
return setVar;
}