public static void main(String[] args) {
        Configuration configuration = new Configuration();
        configuration.setClassForTemplateLoading(HelloWorldFreemarkerStyle.class, "/");

        try {
            Template template = configuration.getTemplate("hello.ftl");
            HashMap<String, Object> helloMap = new HashMap<String, Object>();
            helloMap.put("name", "Free MTF marker");
            StringWriter stringWriter = new StringWriter();
            template.process(helloMap, stringWriter);
            System.out.println(stringWriter);
        } catch (IOException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } catch (TemplateException e) {
            e.printStackTrace();
        }
    }