public function setCustomElements(array $customElements)
    {
        $this->customElements = array();

        foreach ($customElements as $element) {
            $this->addCustomElement($element);
        }

        return $this;
    }