code: protected <T> T readResponse(Response response,JavaType javaType)
      {
          try
          {
              return objectMapper.readValue(response.body().byteStream(), javaType);
          }
          catch (IOException e)
          {
              throw new ClientMarshallingException("Error reading results.",e);
          }
      }
docs: Read the response and unmarshall into the expected type
  @param response The http response
  @param javaType The type to return
  @return The response value