public synchronized RequestRecorder getRestReq(ArrayList<String> reqIds, boolean test, boolean isTransfer) {
        RequestRecorder result = new RequestRecorder();
        ArrayList<String> currentAll = getAllReqIds(isTransfer);
        if (test) {
            for (String reqId: currentAll) {
                System.out.println("currentAll: reqId" + reqId);
            }
            for (String reqId: reqIds) {
                System.out.println("received: reqId" + reqId);
            }
        }
        currentAll.removeAll(reqIds);
        if (test) {
            for (String reqId: currentAll) {
                System.out.println("currentAll after remove: reqId" + reqId);
            }
        }
        for (String reqId: currentAll) {
            if (!isTransfer)  {
                if (sentTrans.containsKey(reqId)) {
                    result.addEntry(reqId, "request", sentTrans.getRecord(reqId, "request"));
                } else {
                    result.addEntry(reqId, "request", processedTrans.getRecord(reqId, "request"));
                }
            } else {
                if (sentTransfer.containsKey(reqId)) {
                    result.addEntry(reqId, "request", sentTransfer.getRecord(reqId, "request"));
                } else {
                    result.addEntry(reqId, "request", processedTransfer.getRecord(reqId, "request"));
                }
            }
        }
        return result;
    }