treeScrollPane.setViewportView(jtree);
treePanel.add(treeScrollPane);
// Add roots in the JTree for the System area and Users area in the
// default content repository.
ContentRepositoryRegistry registry =
ContentRepositoryRegistry.getInstance();
ContentRepository repo = registry.getRepository(session);
try {
ContentCollection sysCollection = repo.getSystemRoot();
ContentCollection userCollection =
(ContentCollection) repo.getRoot().getChild("users");
jtree.addTreeRoot(BUNDLE.getString("System"), sysCollection);