String str = cd.substring(start + 10, end).trim(); if (str.length() > 0) { fileName = str; }
fileName = cd.substring(start + 10, end).trim();
    protected String getFileName(Map /* String, String */ headers)    {        String fileName = null;        String cd = getHeader(headers, CONTENT_DISPOSITION);        if (cd.startsWith(FORM_DATA) || cd.startsWith(ATTACHMENT))        {            int start = cd.indexOf("filename=\"");            int end = cd.indexOf('"', start + 10);            if (start != -1 && end != -1 && (start + 10) != end)            {                String str = cd.substring(start + 10, end).trim();                if (str.length() > 0)                {                    fileName = str;                }            }                    }        return fileName;    }