List collectionCollections = collection.getCollections();
List collectionViewCollections = new ArrayList(collectionCollections.size());
for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
collectionViewCollections.add(new ViewCollection((Collection) it.next()));
}
DataModel collections = new ListDataModel();
collections.setWrappedData(collectionViewCollections);
CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
collectionBean.setCollections(collections);
collectionBean.setSelectedCollection(new ViewCollection(collection));
List collectionFolders = collection.getFolders();
List collectionViewFolders = new ArrayList(collectionFolders.size());
for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
collectionViewFolders.add(new ViewFolder((Folder) it.next()));
}
DataModel foldersDataModel = new ListDataModel();
foldersDataModel.setWrappedData(collectionViewFolders);
this.folders = foldersDataModel;
return "workspace_content_collection";
}