public function getComplexAttributes($name = null)
    {
        if($name === null)
        {
            return $this->complexAttributeBag->getAll();
        }

        return $this->complexAttributeBag->get($name);
    }