code: function(type, name) {
          var records = this.getRecords(type);
          var self = this;
          var release, typeToSend;
  
          typeToSend = {
            name: name || type.toString(),
            count: get(records, 'length'),
            columns: this.columnsForType(type),
            object: type
          };
  
  
          return typeToSend;
        }
docs: Wraps a given model type and observes changes to it.
  
  @private
  @method wrapModelType
  @param {Class} type A model class
  @param {String}  Optional name of the class
  @return {Object} contains the wrapped type and the function to remove observers
  Format:
  type: {Object} the wrapped type
  The wrapped type has the following format:
  name: {String} name of the type
  count: {Integer} number of records available
  columns: {Columns} array of columns to describe the record
  object: {Class} the actual Model type class
  release: {Function} The function to remove observers