public void Dispatch(object message)
        {
            var handler = _factory.Resolve(message.GetType());

            if (handler == null)
            {
                throw new UnregisteredMessageHandlerException(message);
            }

            handler.Handle(message);
        }