public function registerRoutes(array $messages, Endpoint $endpoint): void
    {
        foreach ($messages as $message)
        {
            $this->registerRoute($message, $endpoint);
        }
    }