private static function _convertParameters(&$params)
    {
        $res = [];

        foreach ($params as $param => $substitutions) {
            $res["$param"] = [];
            foreach ($substitutions as $key => $value) {
                $res["$param"]["$key"] = "$value";
            }
        }

        return $res;
    }