title: Map stream of Data into Page<T>
body: <p>For quite a while now I am trying to get following to work in my resource / controller:</p>
  
  <p>Have a stream of data and then map the stream of data to a Page response</p>
  
  <pre><code>Page&lt;SomeType&gt; controllerMethod() {
  
      List&lt;SomeType&gt; allItems = someRepository.findAll()
                                .filter(something)
                                .collect(Collectors.toList())
  
      return allItems.map(...?)
  }
  </code></pre>
  
  <p><strong>Question</strong>:</p>
  
  <p>Are there any helpers from spring that can help me acheive this?</p>
  
  <p>It would be ok that the paging is not done on DB level.</p>