fakeComponent.setName(contentVO.getName());
fakeComponent.setContentId(contentVO.getId());
StringWriter cacheString = new StringWriter();
PrintWriter cachedStream = new PrintWriter(cacheString);
new VelocityTemplateProcessor().renderTemplate(context, cachedStream, code, false, fakeComponent);
//renderTemplate(context, cachedStream, code);
String result = cacheString.toString();
scriptController.commitTransaction();
cacheString = new StringWriter();
cachedStream = new PrintWriter(cacheString);
new VelocityTemplateProcessor().renderTemplate(context, cachedStream, userOutputHTML, false, fakeComponent);
//renderTemplate(context, cachedStream, userOutputHTML);
result = cacheString.toString();
getResponse().setContentType("text/html");
PrintWriter out = getResponse().getWriter();