private void doListRecordsOrIdentifiersTest(String from, 
                                                String until, 
                                                String prefix, 
                                                String set, 
                                                boolean identifiers) throws Exception {
        ResponseData data = null;
        String which = null;
        try {
            if (identifiers) {
                which = "Identifiers";
                data = m_responder.listIdentifiers(from, until, prefix, set, null);
            } else {
                which = "Records";
                data = m_responder.listRecords(from, until, prefix, set, null);
            }
            if (m_print) printResult("list" + which + "(" + from + ", " + until + ", " + prefix + ", " + set + ", null)", data);
            String token = data.getResumptionToken();
            while (token != null) {
                try { data.release(); } catch (Exception e) { }
                if (identifiers) {
                    data = m_responder.listIdentifiers(null, null, null, null, token);
                } else {
                    data = m_responder.listRecords(null, null, null, null, token);
                }
                if (m_print) printResult("list" + which + "(null, null, null, null, " + token + ")", data);
                token = data.getResumptionToken();
            }
        } catch (ProtocolException e) {
            System.out.println("For from = " + from + ", until = " + until + ", prefix = " + prefix + ", set = " + set + ", List" + which + " got protocol exception: " + e.getMessage());
        } finally {
            if (data != null) try { data.release(); } catch (Exception e) { }
        }
    }