code: public static void addAuthorizationHeader(URLConnection urlConnection, String header) {
          if (header != null) {
              urlConnection.setRequestProperty(AUTHORIZATION_HEADER, header);
          }
      }
docs: Adds the authorization header to the given URL connection object.
  @param urlConnection The URL connection to add the header to.