Establishing session in the client side

About this task
After the configuration, you need to invoke the establishSession method to establish the session with BTT server. It returns true if the session is successfully established with the server. Following is the code example:
if (adapter==null){
			adapter=new MobileAdapter();
			
			if (adapter.establishSession()==false){
				System.out.println("Establish session failed!");
				adapter=null;
			}
			
		}