private function persistence($persistenceElement)
    {
        $persistence = array();
        if ($persistenceElement) {
            $persistence['provider'] = (string)$persistenceElement[0]->provider;
            $persistence['params'] = $this->_toArray((string)$persistenceElement[0]->params);
        }
        return $persistence;
    }