}
static Map<String, Response> parseRpcResponse(
Map<String, Request> requests, HttpResponseMessage responseMessage,
String version) {
Parser parser = getParser(responseMessage.getResponse());
Map<String, Class<? extends Model>> modelClasses =
new HashMap<String, Class<? extends Model>>();
for (Map.Entry<String, Request> requestEntry : requests.entrySet()) {
Request request = requestEntry.getValue();
modelClasses.put(requestEntry.getKey(), request.getModelClass());
}
return parser.getResponseMap(responseMessage.getResponse(), modelClasses,
version);
}