Iterator i=collections.iterator();
String value=serviceLocator.getSearchForm().getValueString(SubcollectionIndexingFilter.FIELD_NAME);
while(i.hasNext()){
Subcollection collection=(Subcollection)i.next();
boolean checked=(value!=null && value.equals(collection.getId()));
wrapped.add(new SubcollectionWrapper(collection,checked));
if(checked){
hasSelectedCollection=true;
}
}