Openfire plugin with freemarker?

Hi,
is it possible to develop openfire with freemarker instead of jsp… has anyone done that?
I know that some of the juve products are using freemarker , e.g : jive communities… so I assume it cant be done?