public function getContentBlock($name, $locale, $useLocaleFallback = false)
    {
        $this->fetchBlocks();

        if ($this->hasContentBlock($name, $locale))
        {
            return $this->blocks[$name][$locale];
        }
        elseif ($useLocaleFallback)
        {
            // search for position of given locale in locales list
            $key = array_search($locale, $this->locales);

            if (false !== $key && null !== $key && isset($this->locales[$key - 1]))
            {
                return $this->getContentBlock($name, $this->locales[$key - 1], $useLocaleFallback);
            }
        }

        return null;
    }