else if (contentType.startsWith("application/x-www-form-urlencoded")) { is = request.getInputStream();  if (is == null) return;  StringBuilder value = new StringBuilder(); int ch;  while ((ch = is.read()) >= 0) { value.append((char) ch); }  StringModule.parse_str(env, value.toString(), post);  return; } else if (! contentType.startsWith("multipart/form-data")) { return; }
  static void fillPost(Env env,                       ArrayValue post, ArrayValue files,                       HttpServletRequest request,                       boolean addSlashesToValues)  {    InputStream is = null;    try {      if (! request.getMethod().equals("POST"))        return;      String contentType = request.getHeader("Content-Type");      if (contentType == null ||          ! contentType.startsWith("multipart/form-data"))        return;      String boundary = getBoundary(contentType);      is = request.getInputStream();      MultipartStream ms = new MultipartStream(Vfs.openRead(is), boundary);      // ms.setEncoding(javaEncoding);      readMultipartStream(env, ms, post, files, addSlashesToValues);    } catch (IOException e) {      e.printStackTrace();    } finally {      try {        if (is != null)          is.close();      } catch (IOException e) {      }    }  }