if (ajax) {
// fancy ajax tree
catalogAdddController = new CatalogAjaxAddController(ureq, getWindowControl(), repositoryEntry);
} else {
// old-school selection tree
catalogAdddController = new CatalogEntryAddController(ureq, getWindowControl(), repositoryEntry);
}
listenTo(catalogAdddController);