public class AboutMeClient {
public static void main(String[] args) throws Exception {
RudpLocalEndpoint endpoint = new MultithreadedRudpLocalEndpoint();
final RemoteRegistry registry = new RemoteRegistry(endpoint);
endpoint.run();
SocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), 22222);
final AboutMe aboutMe = registry.subscribe(address, "aboutMe", AboutMe.class);
System.out.println("object = " + aboutMe);
System.out.println("name = " + aboutMe.getName());