class FreemarkerModelBody extends AbstractModelBody {

    @Override
    public void evaluate(Writer writer) throws IOException {
        if (templateDirectiveBody == null) {
            return;
        }

        try {
            templateDirectiveBody.render(writer);
        } catch (TemplateException e) {
            throw new IOException("TemplateException when rendering body", e);
        }
    }

    public  FreemarkerModelBody(Writer defaultWriter, TemplateDirectiveBody templateDirectiveBody);

}