 
 
   subscribeToAllDomainEvents: (handlerFn) ->
-    domainEventHandler = () => handlerFn.apply @_di, arguments
+    domainEventHandler = => handlerFn.apply @_di, arguments
     @_eventBus.subscribeToAllDomainEvents domainEventHandler
 
 
   subscribeToDomainEvent: (domainEventName, handlerFn) ->
-    domainEventHandler = () => handlerFn.apply @_di, arguments
+    domainEventHandler = => handlerFn.apply @_di, arguments
     @_eventBus.subscribeToDomainEvent domainEventName, domainEventHandler
 
 

    @_isInitialized = false
    @_isDestroyed = false
    @_params = @_eventric.get()
    @_di = {}
    @_aggregateClasses = {}
    @_commandHandlers = {}
    @_queryHandlers = {}


  _initializeProjections: ->
    initializeProjectionsPromise = Promise.resolve()
    for projectionName, ProjectionClass of @_projectionClasses
      @log.debug "[#{@name}] Initializing Projection #{projectionName}"

      initializeProjectionsPromise = initializeProjectionsPromise.then =>
        @projectionService.initializeInstance projectionName, ProjectionClass, {}
      .then (projectionId) =>
        @log.debug "[#{@name}] Finished initializing Projection #{projectionName}"

    return initializeProjectionsPromise

