private void doAddCatalog(UserRequest ureq) {
removeAsListenerAndDispose(catalogAdddController);
boolean ajax = getWindowControl().getWindowBackOffice().getWindowManager().isAjaxEnabled();
if (ajax) {
// fancy ajax tree
catalogAdddController = new CatalogAjaxAddController(ureq, getWindowControl(), repositoryEntry);
} else {
// old-school selection tree
catalogAdddController = new CatalogEntryAddController(ureq, getWindowControl(), repositoryEntry);
}