docs: @Override
    public void flush()
    {
      ObjectMapper mapper = ObjectMapperFactory.getObjectMapper();
      String dtoDump;
      URI incidentURI;
      try
      {
        dtoDump = mapper.writeValueAsString(new IncidentV2DTO(this));
      }
      catch (JsonProcessingException ex)
      {
  
        logger.error("Incident registration failed, could not map "
                     + "incident report to json string. Exception: {}", ex.getMessage());
        return;
      }
  
      // Sanity check...
      Preconditions.checkNotNull(dtoDump);
  
      try
      {
        URIBuilder uriBuilder = new URIBuilder(this.serverUrl);
        uriBuilder.setPath(SF_PATH_CREATE_INCIDENT_V2);
        incidentURI = uriBuilder.build();
      }
      catch (URISyntaxException ex)
      {
        logger.error("Incident registration failed, "
                     + "URI could not be built. Exception: {}", ex.getMessage());
        return;
      }
  
      HttpPost postRequest = new HttpPost(incidentURI);
      postRequest.setHeader(SFSession.SF_HEADER_AUTHORIZATION,
                            SFSession.SF_HEADER_SNOWFLAKE_AUTHTYPE + " "
                            + SFSession.SF_HEADER_TOKEN_TAG + "=\""
                            + this.sessionToken + "\"");
  
      // Compress the payload.
      ByteArrayEntity input = null;
      try
      {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        GZIPOutputStream gzos = new GZIPOutputStream(baos);
        byte[] bytes = dtoDump.getBytes(StandardCharsets.UTF_8);
        gzos.write(bytes);
        gzos.finish();
        input = new ByteArrayEntity(baos.toByteArray());
        input.setContentType("application/json");
      }
      catch (IOException exc)
      {
        logger.debug("Incident registration failed, could not compress"
                     + " payload. Exception: {}", exc.getMessage());
      }
  
      postRequest.setEntity(input);
      postRequest.addHeader("content-encoding", "gzip");
  
      try
      {
        String response = HttpUtil.executeRequest(postRequest,
                                                  1000, 0,
                                                  null);
        logger.debug("Incident registration was successful. Response: '{}'",
                     response);
      }
      catch (Exception ex)
      {
        // No much we can do here besides complain.
        logger.error(
            "Incident registration request failed, exception: {}",
            ex.getMessage());
      }
    }