Word to the wise:
LocateRegistry.createRegistry (port number) can only be used to create one registry per virtual machine.