claims.put("contact", editContacts);
}
if (editAgreement != null) {
claims.put("agreement", editAgreement);
}
<BUG>int rc = conn.sendSignedRequest(getLocation(), claims, getSession());
if (rc != HttpURLConnection.HTTP_ACCEPTED) {
conn.throwAcmeException();
}</BUG>
Map<String, Object> json = conn.readJsonResponse();

claims.put("contact", editContacts);
}
if (editAgreement != null) {
claims.put("agreement", editAgreement);
}
conn.sendSignedRequest(getLocation(), claims, getSession());
conn.accept(HttpURLConnection.HTTP_ACCEPTED);
Map<String, Object> json = conn.readJsonResponse();
