public Controller getEditorController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
SurveyFileResource fr = new SurveyFileResource();
fr.overrideResourceableId(res.getResourceableId());
//check if we can edit in restricted mode -> only typos
ReferenceManager refM = ReferenceManager.getInstance();
List referencees = refM.getReferencesTo(res);
//String referencesSummary = refM.getReferencesToSummary(res, ureq.getLocale());
//boolean restrictedEdit = referencesSummary != null;
QTIEditorMainController editor = new QTIEditorMainController(referencees,ureq, wControl, fr);
if (editor.isLockedSuccessfully()) {
return editor;