public long getIdleTimeout() {
        return idleTimeout;
    }
Returns the Writer used to send data to the connection. The writer should be
used with caution. In the majority of cases, the {@link #deliver(Packet)}
method should be used to send data instead of using the writer directly.
You must synchronize on the writer before writing data to it to ensure
data consistency:

<pre>
 Writer writer = connection.getWriter();
synchronized(writer) {
    // write data....
}</pre>

@return the Writer for this connection.
xmppserver/src/main/java/org/jivesoftware/openfire/net/SocketConnection.java