for (Mapping mp : sMappings) { if (!mp.includeInExport()) continue; switch(mp.getOp()) { case OP_MAP: addFieldValue(contact, mp.getContactName(), sb, isFirst); break; case OP_STREETADDRESS: addStreetFieldValue(contact, mp.getCsvNames(), mp.getContactName(), sb, isFirst); break; case OP_EMAIL: addEmailFieldValue(contact, mp.getContactName(), sb, isFirst); break; }
for (Attr attr : Contact.Attr.values()) { addFieldValue(contact, attr.name(), sb, isFirst);
    private static void toCSVContact(Map contact, StringBuffer sb) {        boolean isFirst = true;        for (Mapping mp : sMappings) {            if (!mp.includeInExport())                continue;            switch(mp.getOp()) {                case OP_MAP:                    addFieldValue(contact, mp.getContactName(), sb, isFirst);                    break;                case OP_STREETADDRESS:                    addStreetFieldValue(contact, mp.getCsvNames(), mp.getContactName(), sb, isFirst);                    break;                case OP_EMAIL:                    addEmailFieldValue(contact, mp.getContactName(), sb, isFirst);                    break;            }            if (isFirst) isFirst = false;        }        sb.append("\n");            }