@Override
    public GuacamoleWriter acquireWriter() {
        writerLock.lock();
        return getSocket().getWriter();
    }
Acquires exclusive write access to the Guacamole instruction stream
and returns a GuacamoleWriter for writing to that stream.

@return A GuacamoleWriter for writing to the Guacamole instruction
        stream.
guacamole-common/src/main/java/org/apache/guacamole/net/AbstractGuacamoleTunnel.java