public void broadcastToGS(AbstractMessage m)
    {
        System.out.println("RM: Broadcasting message " + m);
        try {
            // Just sending the message with a blocking RMI call as the receive method of these processes is short,
            // non-blocking and we execute this only once per RM start.
            for (String process : registry.list()) {
                if (process.equals(id) || process.substring(0, 2).equals("RM"))
                    continue;

                IGSNode node = (IGSNode) registry.lookup(process);
                node.receive(m);
            }
        } catch (Exception e) {
            System.err.println("Client exception: " + e.toString());
            e.printStackTrace();
        }
    }