title: Is there a way to reuse builder code for retrofit
body: <p>I am using <a href="http://square.github.io/retrofit/">Retrofit</a> and in every task I have to do something like this:</p>
  
  <pre><code>public class MyTask extends AsyncTask&lt;String, String, String&gt; {
  
      private void someMethod() {
          final RestAdapter restAdapter = new RestAdapter.Builder()
              .setServer("http://10.0.2.2:8080")
              .build();
          final MyTaskService apiManager = restAdapter.create(MyTaskService.class);
      }
  
      // ...
  
  }
  </code></pre>
  
  <p>What is a good way to make this code DRY?</p>