code: protected static <T> T _execute(
                      final URL from_url,
                      final HttpMethod method,
                      final RequestCallback callback,
                      final ResponseExtractor<T> extractor
                      )
      {
          _LOG_.debug( "HTTP: method = " + method + ", URL=" + from_url );
  
          URI  from_uri = null;
          try {
              from_uri = from_url.toURI();
                                  //throws URISyntaxException
          } catch (URISyntaxException ex) {
              throw new HttpException( ex );
          }
  
          T  response = null;
          try {
              RestTemplate  rest = new RestTemplate();
              response = rest.execute( from_uri, method, callback, extractor );
          } catch (RestClientException ex) {
              _LOG_.error( "HTTP error: " + ex );
              throw new HttpException( ex );
          }
  
          return response;
      }
docs: Generic HTTP method execution.
  
  @throws  HttpException
  when an exceptional condition occurred during the HTTP method execution.