Compares two remote objects for equality. Two remote objects are
equal if their remote references are non-null and equal.
if (obj instanceof RemoteStub) {
if (ref == null) {
return obj == this;
} else {
return ref.remoteEquals(((RemoteStub)obj).ref);
}
}
return false;