done for RMIregistry