docs: @SuppressWarnings("unchecked")
      public static <E, T> PageResult<T> createPage(final Iterable<? extends E> entries, final PageRequest pageRequest,
                                                    final long totalSize, final PageEntryTransformer<T, E> transformer) {
  
          final PageResult<T> page = new PageResult<>();
          page.setPageRequest(pageRequest == null ? new PageRequestDto() : pageRequest);
          page.setTotalSize(totalSize);
          if (entries != null) {
              for (E entry : entries) {
                  if (transformer == null) {
                      page.getEntries().add((T) entry);
                  } else {
                      T targetEntry = transformer.transform(entry);
                      page.getEntries().add(targetEntry);
                  }
              }
          }
          return page;
      }