public function getBag($name)
    {
        $name = strtolower($name);

        if (empty($this->bags[$name])) {
            throw new \UnexpectedValueException(sprintf('Bag %s not exists', $name));
        }

        return $this->bags[$name];
    }