code: public static void setTenant(TenantContextHolder holder, TenantKey tenantKey) {
          holder.getPrivilegedContext().setTenant(buildTenant(tenantKey));
      }
docs: Sets current thread tenant.
  
  @param holder    tenant contexts holder
  @param tenantKey tenant key