public function setDecoder($name, $decoder = null)
    {
        if (!isset($decoder)) {
            $decoder = '\OtherCode\Rest\Modules\Decoders\\' . strtoupper($name) . 'Decoder';
        }

        if (class_exists($decoder, true)) {
            $this->registerModule($name, new $decoder($this->response), 'after');
        } else {
            throw new \OtherCode\Rest\Exceptions\ModuleNotFoundException('Decoder ' . $name . ' not found!');
        }
        return $this;
    }