log.error("UnicastTest.getNumberOfMessages(): " + e);
System.err.println("UnicastTest.getNumberOfMessages(): " + e);
    long getNumberOfMessages() {        BufferedReader reader=null;        String tmp=null;        try {            System.out.print("Number of messages to send: ");            System.out.flush();            System.in.skip(System.in.available());            reader=new BufferedReader(new InputStreamReader(System.in));            tmp=reader.readLine().trim();            return Long.parseLong(tmp);        }        catch(Exception e) {            log.error("UnicastTest.getNumberOfMessages(): " + e);            return 0;        }    }