code: public PagedList<ApplicationStackInner> getAvailableStacks(final String osTypeSelected) {
          ServiceResponse<Page<ApplicationStackInner>> response = getAvailableStacksSinglePageAsync(osTypeSelected).toBlocking().single();
          return new PagedList<ApplicationStackInner>(response.body()) {
              @Override
              public Page<ApplicationStackInner> nextPage(String nextPageLink) {
                  return getAvailableStacksNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Get available application frameworks and their versions.
  Get available application frameworks and their versions.
  
  @param osTypeSelected Possible values include: 'Windows', 'Linux'
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws DefaultErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;ApplicationStackInner&gt; object if successful.