public function getSlideshowItemsAction(Request $request, $id)
{
$em = $this->container->get('em');
$package = $em->getRepository('Newscoop\\Package\\Package')->findOneBy(array('id' => $id));
if (!$package) {
throw new NotFoundHttpException('Result was not found.');
}
return $package;
}