try {
pairs = parseResponse(response.getEntity());
} catch (ParseException e) {
throw new RuntimeException(e);
} catch (IOException e) {
throw new RuntimeIOException(e);
}
C2DMResponse r = logicalResponseFor(response, pairs);
if (r == C2DMResponse.SUCCESSFUL) {
assert pairs.size() == 1 && "id".equalsIgnoreCase(pairs.get(0).getName());