add directive of freemarker