List<Choice> choiceList = new ArrayList<Choice>();
for (DSpaceObject dso : result.getDspaceObjects())
{
ACrisObject cris = (ACrisObject) dso;
choiceList.add(new Choice(ResearcherPageUtils
.getPersistentIdentifier(cris), cris.getName(),
cris.getName()));
}
Choice[] results = new Choice[choiceList.size()];
results = choiceList.toArray(results);
return new Choices(results, 0, results.length,