if (ctrl != null) return ctrl;
}
// --- repository ---
else if (OresHelper.isOfType(olatResourceable, RepositoryMainController.class)) {
return new RepositoryMainController(ureq, wControl);
}
// --- home ---
else if (OresHelper.isOfType(olatResourceable, HomeMainController.class)) {
if (roles.isGuestOnly()) throw new OLATSecurityException("Tried to launch a HomeMainController, but is in guest group " + roles);
return new HomeMainController(ureq, wControl);