code: public <T> T getObject(
                      final String url,
                      final Class<T> response_type,
                      final Object... uri_variables
                      )
      {
          _LOG_.debug( "HTTP GET: URL=" + url
                          + ", response type=" + response_type
                          + ", variables=" + Arrays.toString( uri_variables ) );
  
          HttpHeaders  request_headers = new HttpHeaders();
          request_headers.setContentType( getObjectMediaType() );
          HttpEntity<?> request_entity = new HttpEntity<Void>( request_headers );
  
          HttpEntity<T>  response = null;
          try {
              response = _newRestTemplate().exchange( url, HttpMethod.GET,
                              request_entity, response_type, uri_variables );
              //throws RestClientException
          } catch (Exception ex) {
              throw new HttpException( ex );
          }
  
          T  body = response.getBody();
  
          return body;
      }
docs: =====================================================================