Future<T?> getModel(String modelId) async { dynamic model = _all[modelId]; if (model == null) { return await onModelNotFound(modelId); } return _all[modelId]; }