code: function(name, dialogContext) {
              dialogContext.name = name;
              contexts[name] = dialogContext;
  
              var helperName = 'show' + name.substr(0, 1).toUpperCase() + name.substr(1);
              this[helperName] = function (obj, activationData) {
                  return this.show(obj, activationData, name);
              };
          }
docs: Adds (or replaces) a dialog context.
  @method addContext
  @param {string} name The name of the context to add.
  @param {DialogContext} dialogContext The context to add.