private function updateRights(Group $group, array $config)
    {
        $securityIdentity = new UserSecurityIdentity($group->getObjectIdentifier(), Group::class);

        foreach ($config as $object => $rights) {
            $methodName = sprintf('add%sRights', ucfirst($object));
            if (method_exists($this, $methodName)) {
                call_user_func_array([$this, $methodName], [$rights, $securityIdentity]);
            }
        }
    }