DamUtil.getTenantAssetsRoot implementation has adaptation of resource resolver to a Tenant class:
Tenant tenant = (Tenant)resolver.adaptTo(Tenant.class);
and tenant object for my requests is always null.
I also noticed that the repository has a node '/etc/tenants'. I believe it has nothing to do with context-aware configs.
Could you share any docs regarding the functionality?
This function has nothing to do with the tenant concept which is providing/using /etc/tenants. There is no real "tenant" concept in AEM 😞