public function getPublicPath($path = '', $raiseException = false)
    {
        $publicDir = $this->config->get('publicDir', self::PLUGIN_HANDLE);
        $publicPath = $this->ioHelper->getRealPath($publicDir.'/'.$path);

        if (!$publicPath && $raiseException) {
            throw new Exception("{$publicPath} does not exist");
        }

        return (string)$publicPath;
    }