code: public List<Post> selectPosts(final Post.Type type,
                                   final Post.Status status,
                                   final Post.Sort sort,
                                   final Paging paging,
                                   final boolean withResolve) throws SQLException {
        return selectPosts(type != null ? EnumSet.of(type) : null, status, sort, paging, withResolve);
     }
docs: Selects a page of posts with a specific type.
  @param type The post type. May be {@code null} for any type.
  @param status The required post status.
  @param sort The page sort.
  @param paging The page range and interval.
  @param withResolve Should associated users, etc be resolved?
  @return The list of posts.
  @throws SQLException on database error.