code: public PagedList<DetectorResponseInner> listHostingEnvironmentDetectorResponses(final String resourceGroupName, final String name) {
          ServiceResponse<Page<DetectorResponseInner>> response = listHostingEnvironmentDetectorResponsesSinglePageAsync(resourceGroupName, name).toBlocking().single();
          return new PagedList<DetectorResponseInner>(response.body()) {
              @Override
              public Page<DetectorResponseInner> nextPage(String nextPageLink) {
                  return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: List Hosting Environment Detector Responses.
  List Hosting Environment Detector Responses.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name Site Name
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException 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;DetectorResponseInner&gt; object if successful.