LocalRegistry java rebind () java8

String name = "Greeting";
Registry registry = LocateRegistry.getRegistry(port);
registry.rebind(name, stub);
Panicky Polecat