BaseChiefControllerCreator bbc = new BaseChiefControllerCreator();
bbc.setContentControllerCreator(/*this is later injected by spring*/new ControllerCreator() {
public Controller createController(UserRequest lureq, WindowControl lwControl) {
BaseFullWebappControllerParts guestSitesAndNav = new GuestBFWCParts();
return new BaseFullWebappController(lureq, lwControl, guestSitesAndNav );
}
});
ChiefController cc = bbc.createChiefController(ureq);
Windows.getWindows(ureq.getUserSession()).setAttribute("AUTHCHIEFCONTROLLER", cc);