protected function callMessageBuilder($callback, MessageContract $message)
    {
        if ($callback instanceof Closure) {
            return $callback($message);
        }

        if ($this->container !== null) {
            return $this->getInvoker()->call($callback)->mail($message);
        }

        throw new InvalidArgumentException('Callback is not valid.');
    }