log.error(e);
System.err.println(e);
    public static void main(String[] args) {        int c;        MessageDispatcherTestAsync test=null;        boolean debug=false, cummulative=false;        for(int i=0; i < args.length; i++) {            if("-help".equals(args[i])) {                help();                return;            }            if("-debug".equals(args[i])) {                debug=true;                continue;            }            if("-cummulative".equals(args[i])) {                cummulative=true;                continue;            }        }        try {            test=new MessageDispatcherTestAsync(debug, cummulative);            test.start();            while(true) {                System.out.println("[m=mcast " + NUM + " msgs x=exit]");                c=System.in.read();                switch(c) {                    case 'x':                        test.disconnect();                        System.exit(0);                        return;                    case 'm':                        test.mcast(NUM);                        break;                    case 'd':                        test.done();                        break;                    default:                        break;                }            }        }        catch(Exception e) {            log.error(e);        }    }