private Func<int, ICommand> GetHandlerOfType(Type type) { return _handlers.Find(handler => handler.Method.ReturnType == type); }