code: @SuppressWarnings("unchecked")
      public static void handleMultipartPost(
          EntityEnclosingMethod postMethodProxyRequest,
          HttpServletRequest httpServletRequest,
          DiskFileItemFactory diskFileItemFactory)
          throws ServletException {
          // TODO: this function doesn't set any history data
          try {
              // just pass back the binary data
              InputStreamRequestEntity ire = new InputStreamRequestEntity(httpServletRequest.getInputStream());
              postMethodProxyRequest.setRequestEntity(ire);
              postMethodProxyRequest.setRequestHeader(STRING_CONTENT_TYPE_HEADER_NAME, httpServletRequest.getHeader(STRING_CONTENT_TYPE_HEADER_NAME));
          } catch (Exception e) {
              throw new ServletException(e);
          }
      }
docs: Sets up the given {@link org.apache.commons.httpclient.methods.PostMethod} to send the same multipart POST data
  as was sent in the given {@link HttpServletRequest}
  
  @param postMethodProxyRequest The {@link org.apache.commons.httpclient.methods.PostMethod} that we are configuring to send a
  multipart POST request
  @param httpServletRequest The {@link HttpServletRequest} that contains the multipart
  POST data to be sent via the {@link org.apache.commons.httpclient.methods.PostMethod}