starting rmiregistry programmatically