public function getPlugin($name)
    {
        if (!$this->has($name)) {
            throw new PluginNotFoundException($name, array_keys($this->plugins));
        }

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