public static String process(String name, SimpleHash params) {
        if (m_templateConfig == null)
            throw new NullPointerException("m_templateConfig is not initialized");

        freemarker.template.Template template;
        try {
            template = m_templateConfig.getTemplate(name);
        } catch (Exception e) {
            System.out.println(e.getMessage());
            return "";
        }

        StringWriter output = new StringWriter();
        try {
            template.process(params, output);
        } catch (Exception e) {
            System.out.println(e.getMessage());
            return "";
        }

        return output.toString();
    }