code: private static String getKeyPairs(String key, Object value) {
          if (value != null) {
              return "&" + key + "=" + value.toString();
          } else {
              return StringUtils.EMPTY;
          }
      }
docs: Gets key pairs.
  
  @param key   the key
  @param value the value
  @return the key pairs