getDataSource method
Implementation
IDataSource? getDataSource(String? id) {
if (id == null) return null;
// datasource exists in this scope
if (datasources.containsKey(id)) return datasources[id];
// walk up the scope tree
if (parent != null) return parent!.getDataSource(id);
// not found
return null;
}