Added template support using FreeMarker