code: public static void mergeTemplate(
  			VelocityEngine velocityEngine, String templateLocation, String encoding,
  			Map<String, Object> model, Writer writer) throws VelocityException {
  
  		VelocityContext velocityContext = new VelocityContext(model);
  		velocityEngine.mergeTemplate(templateLocation, encoding, velocityContext, writer);
  	}
docs: Merge the specified Velocity template with the given model and write the result
  to the given Writer.
  @param velocityEngine VelocityEngine to work with
  @param templateLocation the location of template, relative to Velocity's resource loader path
  @param encoding the encoding of the template file
  @param model the Map that contains model names as keys and model objects as values
  @param writer the Writer to write the result to
  @throws VelocityException if the template wasn't found or rendering failed