code: public void doHttpPost(String url, String templateName, Object model, HttpResponse result, Map<String, Object> headers, String contentType) {
          String request = processTemplate(templateName, model);
          result.setRequest(request);
          doHttpPost(url, result, headers, contentType);
      }
docs: Performs POST to supplied url of result of applying template with model.
  @param url url to post to.
  @param templateName name of template to use.
  @param model model for template.
  @param result result to populate with response.
  @param headers headers to add.
  @param contentType contentType for request.