/**
  * Converts the specified name/value pairs into HttpClient name/value pairs.
  * @param pairs the name/value pairs to convert
  * @return the converted name/value pairs
  */
 public static org.apache.http.NameValuePair[] toHttpClient(NameValuePair[] pairs) {
     org.apache.http.NameValuePair[] pairs2 =
         new org.apache.http.NameValuePair[pairs.length];
     for (int i = 0; i < pairs.length; i++) {
         NameValuePair pair = pairs[i];
         pairs2[i] = new BasicNameValuePair(pair.getName(), pair.getValue());
     }
     return pairs2;
 }