/**
 *
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 *
 */

package com.microsoft.rest;

import com.microsoft.rest.retry.RetryHandler;
import com.microsoft.rest.serializer.AzureJacksonUtils;
import com.microsoft.rest.serializer.JacksonUtils;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.OkHttpClient;
import retrofit.JacksonConverterFactory;
import retrofit.Retrofit;

import java.net.CookieManager;
import java.net.CookiePolicy;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * ServiceClient is the abstraction for accessing REST operations and their payload data types.
 */
public abstract class AzureServiceClient extends ServiceClient {
    /**
     * Initializes a new instance of the ServiceClient class.
     */
    protected AzureServiceClient() {
        this(new OkHttpClient(), new Retrofit.Builder());

        CookieManager cookieManager = new CookieManager();
        cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
        this.client.setCookieHandler(cookieManager);

        Executor executor = Executors.newCachedThreadPool();
        this.retrofitBuilder = this.retrofitBuilder
                .addConverterFactory(new AzureJacksonUtils().getConverterFactory())
                .callbackExecutor(executor);
    }

    /**
     * Initializes a new instance of the ServiceClient class.
     *
     * @param client the OkHttpClient instance to use
     * @param retrofitBuilder the builder to build up a rest adapter
     */
    protected AzureServiceClient(OkHttpClient client, Retrofit.Builder retrofitBuilder) {
        super(client, retrofitBuilder);
    }
}

@@ -224,255 +224,77 @@
 est.
-retry.RetryHandler;%0Aimport com.microsoft.rest.serializer.AzureJacksonUtils;%0Aimport com.microsoft.rest.serializer.JacksonUtils;%0Aimport com.squareup.okhttp.Interceptor;%0Aimport com.squareup.okhttp.OkHttpClient;%0Aimport retrofit.JacksonConverterFactory
+serializer.AzureJacksonUtils;%0Aimport com.squareup.okhttp.OkHttpClient
 ;%0Aim
@@ -383,31 +383,8 @@
 cy;%0A
-import java.util.List;%0A
 impo

Allow customization of retrofit after client is created