protected function prepareList($criteria, $parameters)
{
$em = \Zend_Registry::get('container')->get('em');
$queryBuilder = $em->getRepository('Newscoop\\Package\\Item')->getListByCriteria($criteria);
$list = $this->paginateList($queryBuilder, null, $criteria->maxResults);
$items = array();
foreach ($list->items as $item) {
$items[] = new \Newscoop\TemplateList\Meta\SlideshowItemMeta($item);
}
$list->items = $items;
return $list;
}