Fixed the freemarkerProcessor to be an injectable bean. Else it fails.