Map newlist = new HashMap();
Map<String, String[]> newlist = new HashMap<String, String[]>();
    public void addAllowedDomains(String domains, String cosName) throws ServiceException {    	Cos cos = getCosByName(cosName);    	Set domainSet = cos.getMultiAttrSet(Provisioning.A_zimbraProxyAllowedDomains);    	String[] domainArray = domains.toLowerCase().split(",");    	for (int i = 0; i < domainArray.length; i++) {    		domainSet.add(domainArray[i]);    	}    	Map newlist = new HashMap();    	newlist.put(Provisioning.A_zimbraProxyAllowedDomains, domainSet.toArray(new String[0]));    	cos.modifyAttrs(newlist);    }