Same as findId
T findModelWithCustomKey<T>(String key) { final result = models[key] as T; if(result == null) throw AFException("No model defined for $key"); return result; }