TenantAwareDataSource - how it updated the current tenant Id

Any idea on this. I am stuck due to this.