public static void main(String[] args) {
		String serviceName = null;
		String serverIp = null;
		int serverPort  = 0;
		if (args.length != 3) {
			System.out.println("Usage: java test.test3Client <ServiceName> <ServerIp> <ServerPort>");
			return;
		} else {
			serviceName = args[0];
			serverIp = args[1];
			serverPort = Integer.parseInt(args[2]);
		}
		
		Registry440 registry = null;
		try {
			registry = LocateRegistry440.getRegistry(serverIp, serverPort);
		} catch (RemoteException440 e1) {
			e1.printStackTrace();
		}
		SayHelloInterface sayHello = null;
		try {
			sayHello = (SayHelloInterface) registry.lookup(serviceName);
		} catch (Exception e) {
			e.printStackTrace();
		}
		PersonInterface person = sayHello.createPerson();
		System.out.println("Class Name of person: " + person.getClass().getName());
		
		person.setName("Andy");
		try {
			System.out.println(sayHello.sayHello(person));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}