((List) content).add(addr);
((List<InternetAddress>) content).add(addr);
        public void add(Element elem) throws ServiceException, UnsupportedEncodingException {            String emailAddress = elem.getAttribute(MailService.A_ADDRESS);            String personalName = elem.getAttribute(MailService.A_PERSONAL, null);            String addressType = elem.getAttribute(MailService.A_ADDRESS_TYPE);            InternetAddress addr = new InternetAddress(emailAddress, personalName);            if (elem.getAttributeBool(MailService.A_ADD_TO_AB, false))                newContacts.add(addr);            Object content = addrs.get(addressType);            if (content == null)                addrs.put(addressType, addr);            else if (content instanceof List)                ((List) content).add(addr);            else {                ArrayList list = new ArrayList();                list.add(content);                list.add(addr);                addrs.put(addressType, list);            }        }