public void handleMessage(AbstractMessage message)
    {
        System.out.println("RM: Received message " + message.toString());
        if (message instanceof MatchMessage) {
            parent.handle((MatchMessage) message);
        } else if (message instanceof MasterMessage) {
            parent.handle((MasterMessage) message);
        } else if (message instanceof JobAssignMessage) {
            parent.handle((JobAssignMessage) message);
        } else {
            System.out.println("Unknown message class " + message.toString());
        }
    }