protected function filterViewPath($configViewPaths)
    {
        if (!ArrayUtils::isHashTable($configViewPaths)) {
            throw new Exception\InvalidArgumentException('Config view path is not valid');
        }

        foreach ($configViewPaths as $moduleName => $viewPath) {
            $viewPath = realpath($viewPath);
            if (!$viewPath) {
                $errMsg = sprintf('Config view path for "%s" module is invalid', $moduleName);
                throw new Exception\RuntimeException($errMsg);
            }
            $configViewPaths[$moduleName] = $viewPath;
        }
        return $configViewPaths;
    }