6970717273747576
public String findTemplate(String templateName) { try { return (String) findTemplateSource(templateName); } catch (IOException e) { throw new ProcessToolTemplateErrorException(e); } }
88899091929394959697
{ Template template = freemarkerConfiguration.getTemplate(templateName); template.process(data != null ? data : new HashMap(), sw); } catch (Exception e) { throw new ProcessToolTemplateErrorException(e); } sw.flush(); return sw.toString(); }