IDE-859

use freemarker instead of velocity to generate templates