docs: public static <T> HttpHeaders generatePaginationHttpHeaders(UriComponentsBuilder uriBuilder, Page<T> page) {
          HttpHeaders headers = new HttpHeaders();
          headers.add(HEADER_X_TOTAL_COUNT, Long.toString(page.getTotalElements()));
          int pageNumber = page.getNumber();
          int pageSize = page.getSize();
          StringBuilder link = new StringBuilder();
          if (pageNumber < page.getTotalPages() - 1) {
              link.append(prepareLink(uriBuilder, pageNumber + 1, pageSize, "next"))
                  .append(",");
          }
          if (pageNumber > 0) {
              link.append(prepareLink(uriBuilder, pageNumber - 1, pageSize, "prev"))
                  .append(",");
          }
          link.append(prepareLink(uriBuilder, page.getTotalPages() - 1, pageSize, "last"))
              .append(",")
              .append(prepareLink(uriBuilder, 0, pageSize, "first"));
          headers.add(HttpHeaders.LINK, link.toString());
          return headers;
      }