first prototype of using Velocity Template engine for code gen