/// <summary>
        /// Handles the client.
        /// </summary>
        /// <param name="client">The client.</param>
        public void HandleClient(ClientOfServer client)
        {
            new Task(() => {
                while (client.IsConnected())
                {
                    // Receive the command from the client.
                    string commandLine = client.ReadFromClient();

                    if (!string.IsNullOrEmpty(commandLine))
                    {
                        Console.WriteLine("Received command: {0}", commandLine);

                        // Send the result to the client.
                        string result = controller.ExecuteCommand(commandLine, client);
                        client.WriteToClient(result);
                    }
                }
            }).Start();
        }