public function route(string $messageClass): array
    {
        if (false === empty($this->routes[$messageClass]))
        {
            return $this->routes[$messageClass];
        }

        return $this->globalEndpoints;
    }