class InsertTemplateModel {

    public void execute(@Parameter(required = true) String template,
            String templateType, String templateExpression, String role,
            String preparer, boolean flush, Request request, ModelBody modelBody)
            throws IOException {
        TilesContainer container = TilesAccess.getCurrentContainer(request);
        container.startContext(request);
        modelBody.evaluateWithoutWriting();
        container = TilesAccess.getCurrentContainer(request);
        renderTemplate(container, template, templateType, templateExpression,
                role, preparer, flush, request);
    }

}