public function parseEnvironmentVariables($content)
    {
        $func = function($matches) {
            $value = getenv($matches[1]);
            return $value === false ? 'null' : $value;
        };
        $content = preg_replace_callback('/%([\w_]+?)%/', $func, $content);
        return $content;
    }