code: public static void main(String[] args) throws Exception {
  		if (args.length != 2) {
  			System.out.println("usage: ListDoms nic password");
  			return;
  		}
  		String nic = args[0];
  		String password = args[1];
  		list2(nic, password);
  	}
docs: Login using nic handler