}
ArrayNode responses = batchReq.getBatchResponse().toJSONArray();
JacksonHelper.MAPPER.writeValue(response.getWriter(), responses);
} else {
if (root.has("jsonrpc")) {
JsonRpc20Request jsonReq = new JsonRpc20Request((ObjectNode)root);
JsonRpcResponse jsonResult = invoke(jsonReq);
if (jsonResult != null) {
jsonResult.write(response.getWriter());
}
} else {