@Override public List<EDITOR> readAll(CONTEXT context) { Response response = context .getSession() .given() .contentType(getContentType()) .header(Headers.acceptJson()) .get( "/rest/applications/{variantID}/installations", context.getParent().getVariantID()); UnexpectedResponseException.verifyResponse(response, HttpStatus.SC_OK); List<EDITOR> editors = new ArrayList<EDITOR>(); JsonPath jsonPath = response.jsonPath(); List<Map<String, ?>> items = jsonPath.getList(""); for (int i = 0; i < items.size(); i++) { jsonPath.setRoot("[" + i + "]"); EDITOR editor = demarshall(context, jsonPath); editors.add(editor); } return editors; }