private void notifyConsumer(final Consumer<Object> consumer,final Object event){
  final Executor executor=consumerExecutors.get(consumer);
  if (executor == null) {
    consumer.accept(event);
  }
 else {
    executor.execute(null);
  }
}

private void notifyConsumer ( final Consumer < Object > consumer , final Object event ) { final Executor executor = consumerExecutors . get ( consumer ) ; if ( executor == null ) { consumer . accept ( event ) ; } else { executor . execute ( null ) ; } }
notifies the consumer with the event . if an executor has been specified , it is used .
