 
   processProducts: (products) ->
     console.log "Mapping done. About to process existing product(s) ..."
-    @_mapMatchFunction(@matchBy)(@client.productProjections, products)
+    QueryUtils.mapMatchFunction(@matchBy)(@client.productProjections, products)
     .then (payload) =>
       existingProducts = payload.body.results
       console.log "Comparing against #{payload.body.total} existing product(s) ..."

CONS = require './constants'
GLOBALS = require './globals'
Validator = require './validator'

# TODO:
# - better organize subcommands / classes / helpers

      # TODO: resolve with a summary of the import
      console.log "Finished processing #{_.size result} product(s)"
      Promise.resolve result

  changeState: (publish = true, remove = false, filterFunction) ->
    @publishProducts = true
