public function getCompiler()
    {
        if (!$this->compiler instanceof AbstractCompiler) {
            if (null === $this->compiler) {
                throw new \Exception('Compiler not set');
            }
            $compiler = $this->getView()->getHelperPluginManager()->getServiceLocator()->get($this->compiler);
            if (!$compiler instanceof AbstractCompiler) {
                throw new \Exception(sprintf(
                    'Invalid compiler type: %s not instance of Spork\CSS\AbstractCompiler',
                    is_object($compiler) ? get_class($compiler) : gettype($compiler)));
            }
            $this->compiler = $compiler;
        }
        
        return $this->compiler;
    }