Matcher m = sTargetConstraint.matcher(indexOrId); if (m.find()) indexOrId = m.replaceAll("");
    private String translateId(String indexOrId) throws ServiceException {        StringBuilder ids = new StringBuilder();        for (String t : indexOrId.split(",")) {                        if (t.length() > 1 && t.charAt(0) == '#') {                t = t.substring(1);                //System.out.println(t);                                int i = t.indexOf('-');                if (i != -1) {                    int start = Integer.parseInt(t.substring(0, i));                    String es = t.substring(i+1, t.length());//                    System.out.println(es);                    int end = Integer.parseInt(t.substring(i+1, t.length()));                    for (int j = start; j <= end; j++) {                        String id = mIndexToId.get(j);                        if (id == null) throw SoapFaultException.CLIENT_ERROR("unknown index: "+t, null);                        if (ids.length() > 0) ids.append(",");                                                ids.append(id);                    }                } else {                    String id = mIndexToId.get(Integer.parseInt(t));                    if (id == null) throw SoapFaultException.CLIENT_ERROR("unknown index: "+t, null);                    if (ids.length() > 0) ids.append(",");                                        ids.append(id);                }            } else {                if (ids.length() > 0) ids.append(",");                                ids.append(t);            }        }        return ids.toString();    }