if (collections.size() != 0) {
communityNode.setLeaf(false);
}
for (Iterator collIt = collections.iterator(); collIt.hasNext();) {
ViewCollection currentCollection = new ViewCollection(
(Collection) collIt.next());
CustomTreeNode tnb = new CustomTreeNode("collection",
currentCollection.getName(), false);
tnb.setContent(currentCollection);
tnb.setIdentifier(currentCollection.getId());
tnb.setParent(communityNode);
communityNode.getChildren().add(tnb);
int currentFoldersCount = this
.addCommunity(tnb, currentCollection);
currentCollection.setFoldersCount(currentFoldersCount);
foldersCount += currentFoldersCount;
}
List folders = collection.getFolders();
if (folders.size() != 0) {