public function editAction(Request $request, Addressbook $addressbook)
{
if (!$this->get('security.context')->isGranted('dav.read', $addressbook)) {
throw new HttpException(401, 'Unauthorized access.');
}
return $this->action($request, $addressbook);
}