Creates and exports a
Registry instance on the local host that uses custom socket factories for communication with that instance. The registry that is created listens for incoming requests on the given
port using a
ServerSocket created from the supplied
RMIServerSocketFactory.
The Registry instance is exported as if the static UnicastRemoteObject.exportObject method is invoked, passing the Registry instance, the specified port, the specified RMIClientSocketFactory, and the specified RMIServerSocketFactory as arguments, except that the Registry instance is exported with a well-known object identifier, an ObjID instance constructed with the value ObjID.REGISTRY_ID.