return; }  if(data == null) { log.warn("data is null; discarding packet");
    public void send(Address dest, byte[] data, int offset, int length) throws Exception {        Connection conn;        if(dest == null) {            if(log.isErrorEnabled())                log.error("destination is null");            return;        }        // 1. Try to obtain correct Connection (or create one if not yet existent)        try {            conn=getConnection(dest);            if(conn == null) return;        }        catch(Throwable ex) {            throw new Exception("connection to " + dest + " could not be established", ex);        }        // 2. Send the message using that connection        try {            conn.send(data, offset, length);        }        catch(Throwable ex) {            ex.printStackTrace();            if(log.isTraceEnabled())                log.trace("sending msg to " + dest + " failed (" + ex.getClass().getName() + "); removing from connection table");            remove(dest);        }    }