code: protected void addTextParameter(final HttpServletRequest request, final FileItem item) {
          final String name = item.getFieldName();
          final String encoding = request.getCharacterEncoding();
          String value = null;
          boolean haveValue = false;
          if (encoding != null) {
              try {
                  value = item.getString(encoding);
                  haveValue = true;
              } catch (final Exception e) {}
          }
          if (!haveValue) {
              try {
                  value = item.getString("ISO-8859-1");
              } catch (final java.io.UnsupportedEncodingException uee) {
                  value = item.getString();
              }
              haveValue = true;
          }
          if (request instanceof MultipartRequestWrapper) {
              final MultipartRequestWrapper wrapper = (MultipartRequestWrapper) request;
              wrapper.setParameter(name, value);
          }
          final String[] oldArray = elementsText.get(name);
          final String[] newArray;
          if (oldArray != null) {
              newArray = new String[oldArray.length + 1];
              System.arraycopy(oldArray, 0, newArray, 0, oldArray.length);
              newArray[oldArray.length] = value;
          } else {
              newArray = new String[] { value };
          }
          elementsText.put(name, newArray);
          elementsAll.put(name, newArray);
      }
docs: ========