public function deniedObject($type, $object, $message = 'flash_bag.error.default')
    {
        $objectRouter = $this->get("bg_object_routing.object_router");
        $this->addSessionFlashBagMessage(self::SESSION_FLASH_BAG_ERROR, $message);

        return $this->redirect($objectRouter->generate($type, $object));
    }