contextMap.put("total_duration", duration);
generateReport("tag-overview.html", featureOverview, contextMap.getVelocityContext());
}
public void generateErrorPage(Exception exception) throws Exception {
VelocityEngine ve = new VelocityEngine();
ve.init(getProperties());
Template errorPage = ve.getTemplate("templates/errorPage.vm");
VelocityContextMap contextMap = VelocityContextMap.of(new VelocityContext());
contextMap.putAll(getGeneralParameters());
contextMap.put("error_message", exception);
contextMap.put("time_stamp", new SimpleDateFormat("dd-MM-yyyy HH:mm:ss").format(new Date()));
generateReport("feature-overview.html", errorPage, contextMap.getVelocityContext());