int start = cd.indexOf("name=\""); int end = cd.indexOf('"', start + 6); if (start != -1 && end != -1)
ParameterParser parser = new ParameterParser(); parser.setLowerCaseNames(true);  Map params = parser.parse(cd, ';'); fieldName = (String)params.get("name"); if (fieldName != null)
    protected String getFieldName(Map /* String, String */ headers)    {        String fieldName = null;        String cd = getHeader(headers, CONTENT_DISPOSITION);        if (cd != null && cd.startsWith(FORM_DATA))        {            int start = cd.indexOf("name=\"");            int end = cd.indexOf('"', start + 6);            if (start != -1 && end != -1)            {                fieldName = cd.substring(start + 6, end);            }        }        return fieldName;    }