if (nameValueArray != null) {
if (nameValueArray.length == 2) {
String name = nameValueArray[0];
String value = nameValueArray[1];
requestParameters.add(new RequestParameter(name, value));
}
else {
throw new MalformedURLException("invalid name/value pair: " + queryParameter);
}
}