private void closeConnection(WsOutbound outbound,
            GuacamoleStatus guacStatus) {

        closeConnection(outbound, guacStatus.getGuacamoleStatusCode(),
                guacStatus.getWebSocketCode());

    }
Sends the given status on the given WebSocket connection
and closes the connection.

@param outbound
    The outbound WebSocket connection to close.

@param guacStatus
    The status to send.
guacamole/src/main/java/org/apache/guacamole/tunnel/websocket/tomcat/GuacamoleWebSocketTunnelServlet.java