JSONObject result = new JSONObject();
try {
result.put(UPGRADE_AVAILABLE, false);
if (parser != null) {
result.put(UPGRADE_DESCRIPTION, parser.getProp("Software is up to date"));
<BUG>}
sendBroadcast(Constants.Operation.GET_FIRMWARE_UPGRADE_PACKAGE_STATUS, Constants.Status.SUCCESSFUL,
result.toString());</BUG>
} catch (JSONException e) {
<BUG>String message = "Result payload build failed.";
sendBroadcast(Constants.Operation.GET_FIRMWARE_UPGRADE_PACKAGE_STATUS,
Constants.Status.INVALID_PACKAGE, message);</BUG>
Log.e(TAG, message + e);

JSONObject result = new JSONObject();
try {
result.put(UPGRADE_AVAILABLE, false);
if (parser != null) {
result.put(UPGRADE_DESCRIPTION, parser.getProp("Software is up to date"));
