int modelId = db.mapToValue(modelClass.getItemType());
int serviceId = db.mapToValue(modelClass.getServiceType());
String filterKey = null;
JoinedQueryResult result = db.queries.listItems(serviceId, modelId, projectId, filterKey);
List<T> items = mapItemsAndTags(project, secretProvider, db, result);
return applyFilter(items, filter);
} catch (SQLException e) {
throw new RepositoryException("Error fetching items", e);