@Override
public ResultController createController(UserRequest ureq, WindowControl wControl, Form mainForm, ResultDocument document) {
String documentType = document.getDocumentType();
if(resultControllerCreator.containsKey(documentType)) {
ResultControllerCreator creator = resultControllerCreator.get(documentType);
return creator.createController(ureq, wControl, mainForm, document);
}
ResultController ctrl;
if(ContextHelpDocument.TYPE.equals(documentType)) {
ctrl = new ContextHelpResultController(ureq, wControl, mainForm, document);