       return errorResult
 
     completionHandler = (entity) ->
+      console.log "In completion handler"
       entityParser = entityHelper environmentId
 
       responseCallback = callback

      else
        dataOp = 'onGetCount'
    else if task.method is 'DELETE'
      if task.entityId?
        dataOp = 'onDeleteById'
      else if task.query?


    domainBoundOperationHandler = taskDomain.bind operationHandler

    console.log "about to execute function"
    domainBoundOperationHandler task.request, completionHandler

  obj =
