     return registeredCollections[collectionName]
 
   initCompletionHandler = (task, callback) ->
-    unless task.originalRequest?
-      task.originalRequest = task.request
 
     environmentId = task.appMetadata._id
 

    console.log "Generating completion handler"
    completionHandler = initCompletionHandler task, callback

    console.log "Checking dataop"
    if task.method is 'POST'
      console.log "DataOp is insert"

      dataOp = 'onUpdate'
    else if task.method is 'GET' and task.endpoint isnt '_count'
      console.log "DataOp is GET"
      if task.request?.entityId?
        console.log "GetById"
        dataOp = 'onGetById'
      else if task.query?
