class FreemarkerAutotagRuntime implements AutotagRuntime<Request>, TemplateDirectiveModel {

    @Override
    public <T> T getParameter(String name, Class<T> type, T defaultValue) {
        return FreemarkerUtil.getAsObject((TemplateModel)params.get(name), type, defaultValue);
    }

}