action.sleep(5 * 1000);
Thread.sleep(5 * 1000);
    public void run() {        //byte[] msg = {1, 2, 3};        try {            ByteArrayOutputStream b_out = new ByteArrayOutputStream();            ObjectOutputStream o_out = new ObjectOutputStream(b_out);            o_out.writeObject(this.message);            byte[] msg = b_out.toByteArray();            while (true) {                DatagramPacket packet = new DatagramPacket(msg, msg.length,                    address,                    port);                sock.send(packet);                log("run", "Sent advert, going to sleep ...");                action.sleep(5 * 1000);                //Refresh content for message                message = sfResolve(ATR_MESSAGE, false);            }        }        catch (Exception e) {            exception("Error sending advert", e);        }    }