 
     success: (client, data, callback) ->
 
+      { delegate } = client.connection
+
       # It's not allowed to change a stack template group or owner
       delete data.originId
       delete data.group


      meta            : require 'bongo/bundles/meta'

      group           : String

      template        :
        content       : String

        # Keep the existing template details if not provided
        if not templateDetails?
          data.template.details = @getAt 'template.details'

        # Keep last updater info in the template details
        data.template.details.lastUpdaterId = delegate.getId()

      @update { $set: data }, (err) -> callback err

