@@ -0,0 +1,949 @@
+import java.io.IOException;%0Aimport java.io.OutputStreamWriter;%0Aimport java.io.Writer;%0Aimport java.util.Properties;%0Aimport org.apache.velocity.Template;%0Aimport org.apache.velocity.VelocityContext;%0Aimport org.apache.velocity.app.VelocityEngine;%0Aimport org.apache.velocity.runtime.RuntimeConstants;%0A%0Apublic class Main%0A%7B%0A    public static void main (String%5B%5D args) throws IOException%0A    %7B%0A        final String templateName = args%5B0%5D;%0A        final Properties p = new Properties();%0A        final VelocityEngine ve = new VelocityEngine();%0A        p.setProperty(RuntimeConstants.RESOURCE_LOADER, %22file%22);%0A        p.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, %22../test%22);%0A        ve.init(p);%0A        final Template t = ve.getTemplate(templateName);%0A        final VelocityContext context = new VelocityContext();%0A        final Writer writer = new OutputStreamWriter(System.out);%0A        t.merge(context, writer);%0A        writer.flush();%0A    %7D%0A%7D%0A

Add Java reference implementation