class InsertDefinitionModel {

    public void execute(
            @Parameter(name = "name", required = true) String definitionName,
            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);
        renderDefinition(container, definitionName, template, templateType,
                templateExpression, role, preparer, flush, request);
    }

}