 KONFIG      = require 'koding-config-manager'
 
 
+injectQueryStrings = (templateData) ->
+
+  { template: { content }, branch } = templateData
+
+  templateData.template.content = content
+    .replace /\$\{var\.koding_queryString_branch\}/g, branch
+
+  return templateData
+
+
 getPrivateToken = (options, callback) ->
 
   { urlData: { baseUrl }, token, juser } = options


    return async.series queue, (err, results) ->
      return callback err  if err
      [ rawContent, description ] = results
      callback null, _.extend { rawContent, description }, urlData


    async.waterfall queue, (err, result) ->
      return callback err  if err
      callback null, injectQueryStrings _.extend result, urlData


  importStackTemplateWithRawUrl: (urlData, callback) ->
