public void RegisterHandler <TMessage, THandler>(IMessageHandlerFactory <TMessage, THandler> factory) where THandler : IHandler <TMessage> where TMessage : class, IHaveProcessId, IHaveId
        {
            var cfg = new ContainerConfiguration(c => c.Register <THandler>(ctx => factory.Create(ctx.Resolve <IMessageProcessContext>())),
                                                 c => c.RegisterType <MessageHandleActor <TMessage, THandler> >());

            _containerConfigurations.Add(cfg);
            _maps.Add(factory.CreateRouteMap());
        }