Misc.checkNotNull(rev, "Revision ID");
Map<String, Object> queries = new HashMap<String, Object>();
queries.put("revs", "true");
queries.put("rev", rev);
URI findRevs = this.uriHelper.documentUri(id, queries);
<BUG>InputStream is = null;
try {
HttpConnection connection = Http.GET(findRevs);
is = this.executeToInputStreamWithRetry(connection);
return JSONUtils.fromJson(new InputStreamReader(is, Charset.forName("UTF-8")), type);
} finally {
closeQuietly(is);
}</BUG>
}

Misc.checkNotNull(rev, "Revision ID");
Map<String, Object> queries = new HashMap<String, Object>();
queries.put("revs", "true");
queries.put("rev", rev);
URI findRevs = this.uriHelper.documentUri(id, queries);
HttpConnection connection = Http.GET(findRevs);
return executeToJsonObjectWithRetry(connection, type);
}
