*/
public static Controller createHelpCourseLaunchController(UserRequest ureq, WindowControl wControl) {
// Find repository entry for this course
String helpCourseSoftKey = CourseModule.getHelpCourseSoftKey();
RepositoryManager rm = RepositoryManager.getInstance();
RepositoryEntry entry = null;
if (helpCourseSoftKey != null) {
entry = rm.lookupRepositoryEntryBySoftkey(helpCourseSoftKey, false);
}
if (entry == null) {
wControl.setError("error.helpcourse.not.configured");
// create empty main controller
LayoutMain3ColsController emptyCtr = new LayoutMain3ColsController(ureq, wControl, null, null, null, null);
return emptyCtr;
} else {
// Increment launch counter
rm.incrementLaunchCounter(entry);
OLATResource ores = entry.getOlatResource();
ICourse course = loadCourse(ores);
ContextEntry ce = BusinessControlFactory.getInstance().createContextEntry(entry);
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ce, wControl);