ids = actionElem.getText().split(",");
String idText = actionElem.getText(); if (idText.equals("ALL")) {  rmq.clearIndex(); } ids = actionElem.getText().split(",");
	public Element handle(Element request, Map context) throws ServiceException {        ZimbraContext lc = getZimbraContext(context);        Provisioning prov = Provisioning.getInstance();                Element serverElem = request.getElement(AdminService.E_SERVER);        String serverName = serverElem.getAttribute(AdminService.A_NAME);                Server server = prov.getServerByName(serverName);        if (server == null) {            throw ServiceException.INVALID_REQUEST("server with name " + serverName + " could not be found", null);        }                Element queueElem = serverElem.getElement(AdminService.E_QUEUE);        String queueName = queueElem.getAttribute(AdminService.A_NAME);        RemoteMailQueue rmq = RemoteMailQueue.getRemoteMailQueue(server, queueName, false);        Element actionElem = queueElem.getElement(AdminService.E_ACTION);        String op = actionElem.getAttribute(AdminService.A_OP);        QueueAction action = QueueAction.valueOf(op);        if (action == null) {        	throw ServiceException.INVALID_REQUEST("bad " + AdminService.A_OP + ":" + op, null);        }        String by = actionElem.getAttribute(AdminService.A_BY);        String[] ids;        if (by.equals(AdminService.BY_ID)) {        	ids = actionElem.getText().split(",");        } else if (by.equals(AdminService.BY_QUERY)) {            RemoteMailQueue.SearchResult sr = rmq.search(actionElem.getText(), 0, 0);            ids = new String[sr.qitems.size()];            int i = 0;            for (Map<QueueAttr,String> qitem : sr.qitems) {            	ids[i++] = qitem.get(QueueAttr.id);             }        } else {        	throw ServiceException.INVALID_REQUEST("bad " + AdminService.A_BY + ": " + by, null);        }        rmq.action(server, action, ids);                Element response = lc.createElement(AdminService.MAIL_QUEUE_ACTION_RESPONSE);	    return response;	}