private void closeConnection(Session session,GuacamoleStatus guac_status){
  try {
    int code=guac_status.getWebSocketCode();
    String message=Integer.toString(guac_status.getGuacamoleStatusCode());
    session.close(new CloseStatus(code,message));
  }
 catch (  IOException e) {
    logger.debug("Unable to close WebSocket connection.",e);
  }
}

private void closeConnection ( Session session , GuacamoleStatus guac_status ) { try { int code = guac_status . getWebSocketCode ( ) ; String message = Integer . toString ( guac_status . getGuacamoleStatusCode ( ) ) ; session . close ( new CloseStatus ( code , message ) ) ; } catch ( IOException e ) { logger . debug ( "Unable to close WebSocket connection." , e ) ; } }
sends the given status on the given websocket connection and closes the connection .
