code: static void execute(Tenant tenant, Runnable runnable) {
          startTenantFlow();
          try {
              getThreadLocalInstance().setTenant(tenant);
              runnable.run();
          } finally {
              endTenantFlow();
          }
      }
docs: This method will execute {@code runnable.run()} method on behalf of the specified tenant.
  
  @param tenant   the tenant
  @param runnable an instance on which {@code run()} method will be executed