for (int i = 0; i < currentMetadata.getRootElement().getElements().size(); i++) {
paths.add("0:" + (metadataCount) + ":0:" + i);
}
}
TreeModelBase tmb = new TreeModelBase(treeData);
for (Iterator it = paths.iterator(); it.hasNext(); ) {
String path = (String) it.next();
tmb.getTreeState().expandPath(tmb.getPathInformation(path));
}
tmb.getTreeState().collapsePath(new String[]{"0:0"});
return tmb;
}