 
     syncOptions.data.search = @loadOptions.search if @loadOptions.search
     syncOptions
+
+####################################
 
 class Brainstem.DataLoader
   constructor: (options = {}) ->


    return false

  load: (loadOptions) ->
    @_parseLoadOptions(loadOptions)

    # Check the cache

      @storageManager.getCollectionDetails(@loadOptions.name).cache[@loadOptions.cacheKey] = results

    if @loadOptions.only?
      data = _.map(@loadOptions.only, (id) => @cachedCollection.get(id))
    else
      data = _(results).map (result) -> base.data.storage(result.key).get(result.id)

    @_success @loadOptions, @collection, data

  _buildSyncOptions: ->
    syncOptions =
