public function getRenderer()
    {
        if ($this->hasForm()) {
            return $this->getForm()->getRenderer();
        } elseif($this->hasRenderer()) {
            return $this->renderer;
        } else {
            return null;
        }
    }