protected function updateModel(){
        $body = $this->Response->getBody();
        switch ($this->action){
            case self::MODEL_ACTION_CREATE:
            case self::MODEL_ACTION_UPDATE:
            case self::MODEL_ACTION_RETRIEVE:
                if (is_array($body)){
                    $this->update($body);
                }
                break;
            case self::MODEL_ACTION_DELETE:
                $this->clear();
        }
    }