docs: @Override
      public void writeTenant(MutableHttpRequest<?> request, Serializable tenant) {
  
          if (tenant instanceof String) {
              Cookie cookie = Cookie.of(
                      cookieTenantWriterConfiguration.getCookiename(),
                      (String) tenant
              );
              cookie.configure(cookieTenantWriterConfiguration, request.isSecure());
              if (cookieTenantWriterConfiguration.getCookieMaxAge().isPresent()) {
                  cookie.maxAge(cookieTenantWriterConfiguration.getCookieMaxAge().get());
              } else {
                  cookie.maxAge(Integer.MAX_VALUE);
              }
              request.cookie(cookie);
          }
      }