* @see org.olat.core.gui.control.ChiefControllerCreator#createChiefController(org.olat.core.gui.UserRequest)
*/
public ChiefController createChiefController(UserRequest ureq) {
BaseChiefController bcc = new BaseChiefController(ureq);
SimpleBaseController sbasec = new SimpleBaseController(ureq, bcc.getWindowControl());
WindowControl bwControl = sbasec.getWindowControl();
// check if there is a bookmark part in the url
String bookmark = ureq.getParameter("o_bkm"); // e.g. [demo*5]
if (bookmark != null) {
// attach the launcher data
BusinessControl bc = BusinessControlFactory.getInstance().createFromString(bookmark);
// generate new window control with the business control attached to it
bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(bc, bwControl);
}
Controller c = contentControllerCreator.createController(ureq, bwControl);
sbasec.setContentController(c);
bcc.setContentController(true, sbasec);
return bcc;
}