for (int i = 0; i < mFields.size(); i++) mFieldCols.put(mFields.get(i).toString().toLowerCase(), i);
for (int i = 0; i < mFields.size(); i++) { String fieldName = mFields.get(i); if (fieldName != null && !fieldName.equals("")) mFieldCols.put(fieldName.toLowerCase(), i); }
    private void initFields(BufferedReader reader) throws IOException, ParseException {        mFields = new ArrayList<String>();                parseLine(reader, mFields, true);                // create mapping from CSV field name to column        mFieldCols = new HashMap<String, Integer>(mFields.size());        for (int i = 0; i < mFields.size(); i++)            mFieldCols.put(mFields.get(i).toString().toLowerCase(), i);    }