for (ExtractInfo qe : getQueryExtracts()) { if (qe.first) { request.getAttributes().put(qe.attribute, form.subList(qe.value));
for (ExtractInfo ei : getQueryExtracts()) { if (ei.first) { request.getAttributes().put(ei.attribute, form.getFirstValue(ei.value));
    private void extractAttributes(Request request, Response response) {        // Extract the query parameters        if (this.queryExtracts != null) {            Form form = request.getResourceRef().getQueryAsForm();            if (form != null) {                for (ExtractInfo qe : getQueryExtracts()) {                    if (qe.first) {                        request.getAttributes().put(qe.attribute,                                form.subList(qe.value));                    } else {                        request.getAttributes().put(qe.attribute,                                form.getFirst(qe.value));                    }                }            }        }        // Extract the request entity parameters        if (this.entityExtracts != null) {            Form form = request.getEntityAsForm();            if (form != null) {                for (ExtractInfo ie : getEntityExtracts()) {                    if (ie.first) {                        request.getAttributes().put(ie.attribute,                                form.subList(ie.value));                    } else {                        request.getAttributes().put(ie.attribute,                                form.getFirst(ie.value));                    }                }            }        }        // Extract the cookie parameters        if (this.cookieExtracts != null) {            Series<Cookie> cookies = request.getCookies();            if (cookies != null) {                for (ExtractInfo qe : getCookieExtracts()) {                    if (qe.first) {                        request.getAttributes().put(qe.attribute,                                cookies.subList(qe.value));                    } else {                        request.getAttributes().put(qe.attribute,                                cookies.getFirst(qe.value));                    }                }            }        }        // Extract the model patterns        if (this.modelExtracts != null) {            // CallModel model = new CallModel(request, response, null);            // for (ExtractInfo me : getModelExtracts()) {            // request.getAttributes().put(me.attribute, model.get(me.value));            // }        }    }