code: public static List <NameValuePair> parse (
              final HttpEntity entity) throws IOException {
          ContentType contentType = ContentType.get(entity);
          if (contentType != null && contentType.getMimeType().equalsIgnoreCase(CONTENT_TYPE)) {
              String content = EntityUtils.toString(entity, Consts.ASCII);
              if (content != null && content.length() > 0) {
                  Charset charset = contentType.getCharset();
                  if (charset == null) {
                      charset = HTTP.DEF_CONTENT_CHARSET;
                  }
                  return parse(content, charset);
              }
          }
          return Collections.emptyList();
      }
docs: Returns a list of {@link NameValuePair NameValuePairs} as deserialized from an
  {@link HttpEntity}. The encoding is taken from the entity's
  Content-Encoding header.
  <p>
  This is typically used while deserializing an HTTP POST.
  
  @param entity
  The entity to parse
  @throws IOException
  If there was an exception getting the entity's data.