import java.util.Map;
public class CommandDispatcher extends UntypedActor {
private static Logger log = LoggerFactory.getLogger(CommandDispatcher.class);
private List<Props> commandHandlerProps;
private ActorRef eventStore;
<BUG>private List<CommandHandlerFactory> commandHandlerFactories;</BUG>
private Map<Class<? extends Command>, ActorRef> commandHandlers = new HashMap<Class<? extends Command>, ActorRef>();
private int remainingCommandHandlers = 0;
<BUG>public static Props mkProps(ActorRef eventStore, List<CommandHandlerFactory> commandHandlerFactories){
return Props.create(CommandDispatcher.class, eventStore, commandHandlerFactories);
}</BUG>
public static Props mkProps(List<Props> commandHandlerProps){

import java.util.Map;
public class CommandDispatcher extends UntypedActor {
private static Logger log = LoggerFactory.getLogger(CommandDispatcher.class);
private List<Props> commandHandlerProps;
private ActorRef eventStore;
private Map<Class<? extends Command>, ActorRef> commandHandlers = new HashMap<Class<? extends Command>, ActorRef>();
private int remainingCommandHandlers = 0;
public static Props mkProps(List<Props> commandHandlerProps){
