public function toObject($applystyles = true)
    {
        if ($this->sourceType === self::SOURCE_TYPE_OBJECT && (!$applystyles || empty($this->styles))) {
            return $this->source;
        }

        $dom = $this->toDOM($applystyles);

        return $this->domToObject($dom);
    }