@SuppressWarnings("unused")
    private void handleFailed() {
        incomplete = 0;
        complete = 0;
        for (OnDemandRequest onDemandRequest = (OnDemandRequest) requested.getFront(); onDemandRequest != null; onDemandRequest = (OnDemandRequest) requested.getNext()) {
            if (onDemandRequest.incomplete) {
                incomplete++;
            } else {
                complete++;
            }
        }
        while (incomplete < 10) {
            OnDemandRequest onDemandRequest = (OnDemandRequest) next.popFront();
            if (onDemandRequest == null) {
                break;
            }
            if (fileStatus[onDemandRequest.dataType][onDemandRequest.id] != 0) {
                filesLoaded++;
            }
            fileStatus[onDemandRequest.dataType][onDemandRequest.id] = 0;
            requested.insertBack(onDemandRequest);
            incomplete++;
            closeRequest(onDemandRequest);
            waiting = true;
        }
    }