code: private String generateContent(String templateFile) {
  		try {
  			GStringTemplateEngine gStringEngine = new GStringTemplateEngine();
  			URL url = loadTemplate(templateFolder + "/" + templateFile);
  			if (url == null) {
  				logWarn("NO TEMPLATE FOUND FOR " + templateFile);
  			} else {
  				logDebug("Loaded template: " + url.getPath());
  			}
  			if (url == null) return null;
  			
  			Template template = gStringEngine.createTemplate(url);
  			return template.make(modelMap).toString();
  		} catch (Exception e) {
  			ps.println("### ERROR: Failed generate templatefile: " + templateFile);
  			e.printStackTrace(ps);
  			return null;
  		}
  	}
docs: /*
  Internal methods