public function getCustomerSegment()
    {
        $segment = new Varien_Object();

        $segmentValues = $this->_getSegmentValues();

        foreach ($segmentValues as $field => $configCallbackPair) {
            if (is_array($configCallbackPair) && Mage::getStoreConfigFlag($configCallbackPair[0])) {
                $segment->setData($field, $configCallbackPair[1]());
            } elseif (is_string($configCallbackPair)) {
                $segment->setData($field, $configCallbackPair);
            }
        }

        Mage::dispatchEvent('ecomdev_varnish_customer_segment', array('segment' => $segment));
        
        return $segment->getData();
    }