The previous lines are duplicated (3-times). You could have a method like:

    addQueryStringPair(StringBuilder queryString, String rawKey, String rawValue)