public static Registry getRegistry(Principal principal, String uri,
ConnectionFactory factory,
ClassLoader loader, Map properties)
throws InvalidURIException, RemoteException {
ObjID objId = new ObjID(ObjID.REGISTRY_ID);
String className = RegistryImpl.PROXY;
return (Registry) getProxy(objId, principal, uri, factory, className,
loader, properties);
}