public virtual ICommandHandler Get(Type commandType) { ICommandHandler handler; if (!Registrations.TryGetValue(commandType, out handler) || handler == null) { throw Exceptions.CanNotLocateCommandHandler(commandType); } return(handler); }