package com.microsoft.azure.documentdb.sample.dao;

import com.microsoft.azure.documentdb.ConnectionPolicy;
import com.microsoft.azure.documentdb.ConsistencyLevel;
import com.microsoft.azure.documentdb.DocumentClient;

public class DocumentClientFactory {
    private static final String HOST = "https://docdb-java-sample.documents.azure.com:443/";
    private static final String MASTER_KEY = "[YOUR_KEY_HERE]";

    private static DocumentClient documentClient;

    public static DocumentClient getDocumentClient() {
        if (documentClient == null) {
            documentClient = new DocumentClient(HOST, MASTER_KEY,
                    ConnectionPolicy.GetDefault(), ConsistencyLevel.Session);
        }

        return documentClient;
    }

}

@@ -445,130 +445,8 @@
 ent 
-documentClient;%0A%0A    public static DocumentClient getDocumentClient() %7B%0A        if (documentClient == null) %7B%0A            
 docu
@@ -495,24 +495,16 @@
 ER_KEY,%0A
-        
         
@@ -569,18 +569,63 @@
 n);%0A
+%0A
     
-    %7D%0A
+public static DocumentClient getDocumentClient() %7B
 %0A   

Load DocumentDB client at class-load time