public void addClientToDialog(String clientId, ClientDialog dialog)
	{
		System.out.println("Ajout d'un client a un dialog");
		try
		{
			boolean alreadyKnow = false;
			ClientServerData clientAdd = null;
			System.out.println("On recherche le client");
			for (ClientServerData client : this.getClients())
			{
				if (client.getId().equals(clientId))
				{
					alreadyKnow = true;
					clientAdd = client;
				}
			}
			if (!alreadyKnow)
			{
				System.out.println("On ne le connais pas, donc on le recherche au serveur");
				this.launchThread();
				Thread.sleep(500);
				// On demande les informations du client
				this.threadComunicationClient.getClientConnection(clientId);
				int cpt = 0;
				int sizeClients = this.getClients().size();
				// On attent de les recevoir
				while (cpt < 500 && this.getClients().size() == sizeClients)
				{
					Thread.sleep(200);
					cpt++;
				}
				clientAdd = this.getClients().get(this.getClients().size() - 1);
			}

			if (clientAdd != null)
			{
				System.out.println("On envoie les messages de dialog au nouveau client");
				protocol.sendMessage("dialog:newDialog:" + dialog.getIdDialog(), clientAdd.getIp(), clientAdd.getPortUDP());
				protocol.sendMessage("dialog:newDialog:clients:" + dialog.getIdDialog() + ":" + this.id, clientAdd.getIp(), clientAdd.getPortUDP());

				String listClient = this.id;
				for (ClientServerData client : dialog.getClients())
				{
					listClient += "," + client.getId();
					protocol.sendMessage("dialog:clients:" + dialog.getIdDialog() + ":" + clientAdd.getId(), client.getIp(), client.getPortUDP());
					// A garder, ancienne méthode de groupe, en cas d'erreur
					// protocol.sendMessage("dialog:clients:" +
					// dialog.getIdDialog() + ":" + client.getId(),
					// clientAdd.getIp(), clientAdd.getPort());
				}
				dialog.addClient(clientAdd);
				protocol.sendMessage("dialog:clients:" + dialog.getIdDialog() + ":" + listClient, clientAdd.getIp(), clientAdd.getPortUDP());
			}
		} catch (InterruptedException e)
		{
			getLogger().severe("Erreur d'ajout d'un client, message : " + e.getMessage());
		}
	}