class SaveBmiService extends IntentService {

    @Override
    protected void onHandleIntent(Intent intent) {
        if (intent == null) {
            return;
        }

        Serializable extra = intent.getSerializableExtra(PARAM_KEY_BMI_VALUE);
        if (extra == null || !(extra instanceof BmiValue)) {
            return;
        }

        BmiValue bmiValue = (BmiValue)extra;
        boolean result = saveToRemoteServer(bmiValue);
        sendLocalBroadcast(result);
    }

    public  SaveBmiService();

}