for (Iterator it = contacts.iterator(); it.hasNext();) { GalContact contact = (GalContact) it.next();
for (GalContact contact : contacts) {
	public Element handle(Element request, Map context) throws ServiceException {        ZimbraContext lc = getZimbraContext(context);        Element q = request.getElement(AdminService.E_QUERY);        String query = q.getText();        long limit = q.getAttributeLong(AdminService.A_LIMIT, 10);	    Map attrs = AdminService.getAttrs(request, true);        Element response = lc.createElement(AdminService.CHECK_GAL_CONFIG_RESPONSE);        Check.Result r = Check.checkGalConfig(attrs, query, (int)limit);                response.addElement(AdminService.E_CODE).addText(r.getCode());        String message = r.getMessage();        if (message != null)            response.addElement(AdminService.E_MESSAGE).addText(message);        List contacts = r.getContacts();        if (contacts != null) {            for (Iterator it = contacts.iterator(); it.hasNext();) {                GalContact contact = (GalContact) it.next();                SearchGal.addContact(response, contact);            }        }	    return response;	}