/**
   * Sets the headers of an HTTP request necessary to execute.
   *
   * @param httpMessage The HTTP request to add the basic headers.
   * @param headers A map of key-value pairs representing the headers.
   */
  public static void setHeaders(HttpMessage httpMessage, Map<String, String> headers) {
    if (headers == null) {
      httpMessage.setHeader("Accept-Language", "en-us,en;q=0.5");
      return;
    } else if (!headers.containsKey("Accept-Language")) {
      headers.put("Accept-Language", "en-us,en;q=0.5");
    }

    for (Map.Entry<String, String> entry : headers.entrySet()) {
      httpMessage.setHeader(entry.getKey(), entry.getValue());
    }
  }