public function savedObject($type, $object, $message = 'flash_bag.success.default', $fragment = null)
    {
        $objectRouter = $this->get("bg_object_routing.object_router");
        $this->addSessionFlashBagMessage(self::SESSION_FLASH_BAG_SUCCESS, $message);

        $url = $objectRouter->generate($type, $object);
        if (null !== $fragment) {
            $url = sprintf('%s#%s', $url, $fragment);
        }

        return $this->redirect($url);
    }