private void initSections(Section rootSection, String indent, WorkspaceImpl workspace) {
if (workspace != null) {
UserStatus userStatus = UserStatus.lookup();
Section[] sections = rootSection != null ? workspace.getAllChildSections(rootSection.getId()) : workspace.getAllRootSections();
for (int i = 0; i < sections.length; i++) {
SectionPermission viewPerm = SectionPermission.newInstance(sections[i], SectionPermission.ACTION_VIEW);
if (userStatus.hasPermission(viewPerm)) {
keys.add("" + sections[i].getId());
values.add(indent + getTitle(sections[i]));
initSections(sections[i], indent + "--", workspace);
}