private function getCoreConfigMap(array $map)
    {
        $result = [];

        foreach ($map as $key => $path) {
            $value = $this->coreConfig->getConfigByPath($path)->getData('value');
            if ($value !== null) {
                $result[$key] = $this->castToType($value, $key);
            }
        }

        return $result;
    }