code: private Client createRestClient() throws KeyManagementException, NoSuchAlgorithmException {
  		ClientConfig clientConfig = new ClientConfig();
  		// Set connection timeout
  		if (this.connectionTimeout != 0) {
  			clientConfig.property(ClientProperties.CONNECT_TIMEOUT, this.connectionTimeout);
  			clientConfig.property(ClientProperties.READ_TIMEOUT, this.connectionTimeout);
  		}
  
  		
  		clientConfig.register(MoxyJsonFeature.class).register(MoxyXmlFeature.class).register(createMoxyJsonResolver());
  		
  		Client client = null;
  		if (this.baseURI.startsWith("https")) {
  			client = createSLLClient(clientConfig);
  		} else {
  			client = ClientBuilder.newClient(clientConfig);
  		}
  
  		return client;
  	}
docs: Creater rest client.
  
  @return the client
  @throws KeyManagementException
  the key management exception
  @throws NoSuchAlgorithmException
  the no such algorithm exception