code: function (batch, response) {
                  var data = response.data;
                  for (var i = 0, requestId; i < batch.length; i++) {
                      requestId = this._getRequestId(batch[i].method, batch[i].params);
                      this._resolvePromise(this._deferreds[requestId], data[i]);
                      delete this._deferreds[requestId];
                  }
              }
docs: Resolves deferred promises.
  
  @param {Object[]} batch Batch request data.
  @param {Object} response Server response.