title: Execute rest call in synchronous way using httpclient
body: <p>I've to execute two rest calls one after the another.</p>
  
  <pre><code>//first rest call
  httpClient.execute(.....)
  //second rest call, should only execute after successful completion of the 
  //first restcall
  httpClient.execute(.....)
  </code></pre>
  
  <p>The second rest call should only proceed after the first rest call succeeds.</p>
  
  <p>Is there a way I can achieve that using HttpClient?</p>