public function throwException($message = null)
    {
        if ($message === null) {
            $message = 'The method [' . $this->name() . '] does not exist.';
        }

        throw new BadMethodCallException($message);
    }