public function setContent($content)
    {
        if (!is_null($content)) {
            if ($content instanceof HtmlElementInterface) {
                $htmlElementObject = $content;
            } else {
                $htmlElementObject = new HtmlElementContent($content);
            }
            $this->getChildElementCollection()->clear();
            $this->getChildElementCollection()->add($htmlElementObject);
        }
        return $this;
    }