implemented new interface for freemarker template processor, added outgoing template processing to spring config