package com.vmware.vim25.mo.samples;

import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;

import com.vmware.vim25.mo.ServiceInstance;

public class SampleUtil {

	public static ServiceInstance createServiceInstance() throws RemoteException, MalformedURLException {
		return new ServiceInstance(new URL("https://10.141.72.223/sdk"), "root", "vmware", true);
	}

}

@@ -305,15 +305,31 @@
  %7B%0A%09
-%09return
+   ServiceInstance si =
  new
@@ -408,14 +408,125 @@
  true);%0A
+%09   si.getSessionManager().setLocale(%22zh-CN%22); // set locale for the content of all API result.%0A%09   return si;%0A
 %09%7D%0A%0A%7D%0A

Set locale for the content of all API result