public function addAuthorizationMapping($entity, $mapping)
    {
        $classname = get_class($entity);
        if (!isset($this->rights[$classname])) {
            $this->buildRights($classname);
        }

        $this->rights[$classname] = array_merge($this->rights[$classname], $mapping);

        return $this;
    }