public void execute(Environment env, Map params, TemplateModel[] loopVars,
TemplateDirectiveBody body) throws TemplateException, IOException {
CmsSite site = FrontUtils.getSite(env);
int pageNo = FrontUtils.getPageNo(env);
int count = FrontUtils.getCount(params);
Pagination page = cmsGuestbookMng.getPage(getSiteId(params),
getCtgId(params),null, getRecommend(params), getChecked(params),
getDesc(params), true, pageNo, count);
Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
params);
paramWrap.put(OUT_PAGINATION, DEFAULT_WRAPPER.wrap(page));
paramWrap.put(OUT_LIST, DEFAULT_WRAPPER.wrap(page.getList()));
Map<String, TemplateModel> origMap = DirectiveUtils
.addParamsToVariable(env, paramWrap);
InvokeType type = DirectiveUtils.getInvokeType(params);
String listStyle = DirectiveUtils.getString(PARAM_STYLE_LIST, params);
if (InvokeType.sysDefined == type) {