public void sendMessage(Message msg, int receiverID) throws java.rmi.RemoteException{
		try {
			IMessageReceivedHandler receiver = (IMessageReceivedHandler) java.rmi.Naming.lookup(createURL(receiverID));
			receiver.onMessageReceived(msg);
		} catch (java.rmi.RemoteException e) {
			e.printStackTrace();
		} catch (java.net.MalformedURLException e) {
			e.printStackTrace();
		} catch (java.rmi.NotBoundException e) {
			e.printStackTrace();
		}
	}