code: private void openCli(SessionContext context, Executor executor) {
  		CliClient cli = null;
  		try {
  			cli = new CliClient(context, executor);
  			// interactive CLI mode
  			if (options.getUpdateStatement() == null) {
  				cli.open();
  			}
  			// execute single update statement
  			else {
  				final boolean success = cli.submitUpdate(options.getUpdateStatement());
  				if (!success) {
  					throw new SqlClientException("Could not submit given SQL update statement to cluster.");
  				}
  			}
  		} finally {
  			if (cli != null) {
  				cli.close();
  			}
  		}
  	}
docs: Opens the CLI client for executing SQL statements.
  
  @param context session context
  @param executor executor