protected function getDefaultValue($name, $value = null)
    {
        if ($value !== null)
            return $value;

        if ($this->model && $this->model->has($name))
            return $this->model->get($name);

        return $value;
    }