code: function (name, wrappedStore) {                                                                  // 488
      var self = this;                                                                                              // 489
                                                                                                                    // 490
      if (name in self._stores)                                                                                     // 491
        return false;                                                                                               // 492
                                                                                                                    // 493
      // Wrap the input object in an object which makes any store method not                                        // 494
      // implemented by 'store' into a no-op.                                                                       // 495
      var store = {};                                                                                               // 496
      _.each(['update', 'beginUpdate', 'endUpdate', 'saveOriginals',                                                // 497
              'retrieveOriginals', 'getDoc',                                                                        // 498
  			'_getCollection'], function (method) {                                                                         // 499
                store[method] = function () {                                                                       // 500
                  return (wrappedStore[method]                                                                      // 501
                          ? wrappedStore[method].apply(wrappedStore, arguments)                                     // 502
                          : undefined);                                                                             // 503
                };                                                                                                  // 504
              });                                                                                                   // 505
                                                                                                                    // 506
      self._stores[name] = store;                                                                                   // 507
                                                                                                                    // 508
      var queued = self._updatesForUnknownStores[name];                                                             // 509
      if (queued) {                                                                                                 // 510
        store.beginUpdate(queued.length, false);                                                                    // 511
        _.each(queued, function (msg) {                                                                             // 512
          store.update(msg);                                                                                        // 513
        });                                                                                                         // 514
        store.endUpdate();                                                                                          // 515
        delete self._updatesForUnknownStores[name];                                                                 // 516
      }                                                                                                             // 517
                                                                                                                    // 518
      return true;                                                                                                  // 519
    }
docs: 484 'name' is the name of the data on the wire that should go in the                                             // 485 store. 'wrappedStore' should be an object with methods beginUpdate, update,                                  // 486 endUpdate, saveOriginals, retrieveOriginals. see Collection for an example.                                  // 487