docs: public static Optional<String> getCurrentTenant() {
          final UserDetails userDetails = getCurrentUser();
          if (!(userDetails instanceof UserPrincipal)) {
              return Optional.empty();
          }
  
          final UserPrincipal userPrincipal = (UserPrincipal) userDetails;
          return Optional.of(userPrincipal.getTenant().trim());
      }