if (dt == null) return;
Controller launchController = ControllerFactory.createLaunchController(ores, null, ureq, dt.getWindowControl(), true);
dt.setController(launchController);
dts.addDTab(dt);
}
dts.activate(ureq, dt, null); // null: start with main entry point of controller
} else if (repoEntry.getCanDownload()) {
// else not launchable in olat, but downloadable -> send the document
// directly to browser but "downloadable" (pdf, word, excel)
MediaResource mr = handler.getAsMediaResource(ores);
RepositoryManager.getInstance().incrementDownloadCounter(repoEntry);