code: private static String getKeyValuePair(final String key, final String value, 
          final boolean formEncoding)
          {
          final StringBuilder sb = new StringBuilder ();
          
          final String firstEncoded;
          final String secondEncoded;
          if (formEncoding)
              {
              firstEncoded = urlFormEncode (key);
              secondEncoded = urlFormEncode (value);
              }
          else
              {
              firstEncoded = urlNonFormEncode (key);
              secondEncoded = urlNonFormEncode (value);
              }
          sb.append (firstEncoded);
          sb.append ('=');
          sb.append (secondEncoded);
          
          return sb.toString ();
          }
docs: Returns a key/value pair string for URL parameter encoding.
  
  @param parameter The parameter key/value pair.
  
  @return A key/value pair string for URL parameter encoding.