class RmiClientDiscovery {

	public static <T> T find_rmi_client(String host, int port,
			Class<T> iface) {
		try {
			Client c = new Client(host, port);
			return iface.cast(c.lookup(iface));
		} catch (Exception e) {
			/*
			 * It doesn't exist, it wasn't found...
			 */
		}
		
		return null;
	}

}