@Override
    protected void mapResponseToRequests(List<Object> batchResponse,
                                         Collection<CollapsedRequest<Object, Object>> collapsedRequests) {
        if (batchResponse.size() < collapsedRequests.size()) {
            throw new RuntimeException(createMessage(collapsedRequests, batchResponse));
        }
        int count = 0;
        for (CollapsedRequest<Object, Object> request : collapsedRequests) {
            request.setResponse(batchResponse.get(count++));
        }
    }
@ Override protected void mapResponseToRequests ( List < Object > batchResponse , Collection < CollapsedRequest < Object , Object > > collapsedRequests ) { if ( batchResponse . size ( ) < collapsedRequests . size ( ) ) { throw new RuntimeException ( createMessage ( collapsedRequests , batchResponse ) ) ; } int count = 0 ; for ( CollapsedRequest < Object , Object > request : collapsedRequests ) { request . setResponse ( batchResponse . get ( count ++ ) ) ; } }
{@inheritDoc}