cname = RemoteRef.packagePrefix + '.' + cname;
cname = "gnu.java.rmi.server." + cname;
  private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException   {    String cname = in.readUTF();    if (!cname.equals(""))       {	if (cname.equals ("UnicastRef2"))	  { 	    // hack for interoperating with JDK	    cname = "UnicastRef";	    in.read (); //some unknown UnicastRef2 field	  }	cname = RemoteRef.packagePrefix + '.' + cname;	try 	  {	    Class cls = Class.forName(cname);	    ref = (RemoteRef)cls.newInstance();	  }	catch (InstantiationException e1) 	  {	    throw new UnmarshalException("failed to create ref", e1);	  }	catch (IllegalAccessException e2) 	  {	    throw new UnmarshalException("failed to create ref", e2);	  }	ref.readExternal(in);      }    else       {	ref = (RemoteRef)in.readObject();      }  }