set contextURL for Freemarker template