if (!roles.isGuestOnly()) throw new OLATSecurityException("Tried to launch a GuestMainController, but is not in guest group " + roles);
return new GuestHomeMainController(ureq, wControl);
} else if (OresHelper.isOfType(olatResourceable, GUIDemoMainController.class)) {
if (!roles.isOLATAdmin()) throw new OLATSecurityException("Tried to launch a GUIDemoMainController, but is not in admin group "
+ roles);
return new GUIDemoMainController(ureq, wControl);
} else { // ask the handlerfactory of the repository if it can handle it
// a repository entry ?
RepositoryManager rm = RepositoryManager.getInstance();
//OLAT-1842
//if the LaunchController is created from a link click in a