URL u = new URL("http:" + name); String filename = u.getFile();   if (filename.charAt(0) == '/') getRegistry(u).rebind(filename.substring(1), obj); else getRegistry(u).rebind(filename, obj);
URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException {	URL u = new URL("http:" + name);	String filename = u.getFile();	// If the filename begins with a slash we must cut it for	// name resolution.	if (filename.charAt(0) == '/')		getRegistry(u).rebind(filename.substring(1), obj);	else		getRegistry(u).rebind(filename, obj);}