HttpConnection put = Http.PUT(apiV2DBSecurityURI, "application/json");
put.setRequestBody(client.getGson().toJson(perms));
try {
response = client.couchDbClient.executeToInputStream(put);
String ok = getAsString(response, "ok");
<BUG>if (!ok.equalsIgnoreCase("true")) {
}</BUG>
} finally {
close(response);
}

HttpConnection put = Http.PUT(apiV2DBSecurityURI, "application/json");
put.setRequestBody(client.getGson().toJson(perms));
try {
response = client.couchDbClient.executeToInputStream(put);
String ok = getAsString(response, "ok");
if (!ok.equalsIgnoreCase("true")) {
throw new CouchDbException("Error setting permissions.");
}
} finally {
close(response);
