public function getAcl() {
        $options = $this->getOptions();
        if ($this->_acl === null) {
            $this->_acl = Zend_Registry::isRegistered(self::DEFAULT_REGISTRY_KEY) ?
                Zend_Registry::get(self::DEFAULT_REGISTRY_KEY) : new Zend_Acl();


            $roles = array();
            $resources = array();

            if (isset($options['roles'])) {
                $roles = $options['roles'];
            }

            if (isset($options['resources'])) {
                $resources = $options['resources'];
            }

            $this->_addRoles($roles);
            $this->_addResources($resources);
        }

        return $this->_acl;
    }