docs: function (collection, data, action, options) {
                  if (!(data instanceof Array)) {
                      throw "data has to be an array";
                  }
                  var context,
                      entity,
                      newData = [];
                  for (var i = 0; i < data.length; i++) {
                      var value = data[i];
                      if (!(value instanceof Model)) {
                          // this is needed to determine the right context for collection models that are just links inside the collection
                          context = this.$dataSource._getContext(collection.$modelFactory, collection, value);
                          entity = context.createEntity(collection.$modelFactory, this._getIdForValue(value, collection.$modelFactory));
                          entity.set(this._parseModel(entity, value, action, options));
                          newData.push(entity);
                      }
                  }
  
                  return newData;
              }