GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
String registrationBackendUrl = "https://voipmssms-kourlas.rhcloud.com/register?" +
"did=" + URLEncoder.encode(preferences.getDid(), "UTF-8") + "&" +
"reg_id=" + URLEncoder.encode(token, "UTF-8");
JSONObject result = Utils.getJson(registrationBackendUrl);
<BUG>String status = (String) result.get("status");
</BUG>
if (status == null || !status.equals("success")) {
return false;
}

GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
String registrationBackendUrl = "https://voipmssms-kourlas.rhcloud.com/register?" +
"did=" + URLEncoder.encode(preferences.getDid(), "UTF-8") + "&" +
"reg_id=" + URLEncoder.encode(token, "UTF-8");
JSONObject result = Utils.getJson(registrationBackendUrl);
String status = result.optString("status");
if (status == null || !status.equals("success")) {
return false;
}
