execute

public T execute(F input)

Returns the result of applying the function to the passed input.

The execution goes through the following steps:

  1. The current tenant ID is obtained and remembered.
  2. The tenant ID passed to the constructor is set as current.
  3. The apply method is called.
  4. The previous tenant ID is set as current.