// ------- open velocity container for editing -------
VelocityContainer vc = (VelocityContainer) infoComponent;
String velocityTemplatePath = WebappHelper.getSourcePath()+"/"+vc.getPage();
VFSLeaf vcContentFile = new LocalFileImpl(new File(velocityTemplatePath));
boolean readOnly = Settings.isReadOnlyDebug();
vcEditorController = new PlainTextEditorController(ureq, getWindowControl(), vcContentFile, "utf-8", true, true, null);
vcEditorController.setReadOnly(readOnly);
vcEditorController.addControllerListener(this);
VelocityContainer vcWrap = createVelocityContainer("vcWrapper");
if (readOnly) vcWrap.contextPut("readOnly", Boolean.TRUE);
vcWrap.put("editor", vcEditorController.getInitialComponent());