context.put("templateLogic", templateController);
context.put("model", component.getModel());
StringWriter cacheString = new StringWriter();
PrintWriter cachedStream = new PrintWriter(cacheString);
//Timer t = new Timer();
new VelocityTemplateProcessor().renderTemplate(context, cachedStream, componentString, false, component, " - PreTemplate");
//t.printElapsedTime("Rendering of " + component.getName() + " took ");
componentString = cacheString.toString();
if(logger.isDebugEnabled())
logger.debug("componentString:" + componentString);