System.exit(1);
}
try {
Registry registry = LocateRegistry.getRegistry("localhost", 1199);
RemotePostService postService = (RemotePostService) registry.lookup("PostService");
long postId = postService.createPost("peter", args[0]);
System.out.println("Created new post with ID '" + postId + "'");
} catch (Exception e) {
e.printStackTrace();
}