protected function resolveProperty($name)
    {
        $value = $this->$name;
        if (is_callable($value)) {
            return call_user_func($value, $this);
        }

        return $this->resolveValue($value);
    }