if (restAdapter == null) {
restAdapter = new RestAdapter.Builder()
.setEndpoint(getEndpoint())
.setConverter(new GsonConverter(gson))
.setLogLevel(RestAdapter.LogLevel.FULL)
.setErrorHandler(new RestServiceErrorHandler())
.setRequestInterceptor(restRequestInterceptor)
.build();
}
return restAdapter;