code: public static PageRequest of(final int page, final int size, final Direction direction,
        final String... properties) {
      return PageRequest.of(page, size, Sort.by(direction, properties));
    }
docs: Creates a new {@link PageRequest} with sort direction and properties applied.
  
  @param page zero-based page index.
  @param size the size of the page to be returned.
  @param direction must not be {@literal null}.
  @param properties must not be {@literal null}.
  @since 2.0