Add repo and freemarker jar
Tweak rewrite