}
else {
IndexContribution contribution = new IndexContribution();
contribution.setId(contrib[j].getId());
contribution.setLocale(contrib[j].getLocale());
IIndex index = contrib[j].getIndex();
contribution.setIndex(index instanceof Index ? (Index)index : (Index)UAElementFactory.newElement(index));
contributions.add(contribution);
}
}
}