public static void closeConnection(Connection connection,GuacamoleStatus guac_status){
  connection.close(guac_status.getWebSocketCode(),Integer.toString(guac_status.getGuacamoleStatusCode()));
}

public static void closeConnection ( Connection connection , GuacamoleStatus guac_status ) { connection . close ( guac_status . getWebSocketCode ( ) , Integer . toString ( guac_status . getGuacamoleStatusCode ( ) ) ) ; }
sends the given status on the given websocket connection and closes the connection .
