IRemoteMessage remoteMessage = filter.readObject(objFromStream);
if (remoteMessage instanceof RemoteCall) {
final RemoteCall remoteCall = (RemoteCall) remoteMessage;
if (remoteCall.getArgs() != null) {
for (int n = 0; n < remoteCall.getArgs().length; n++) {
Object arg = remoteCall.getArgs()[n];
if (arg instanceof RemoteInstance) {
RemoteInstance remoteInstance = (RemoteInstance) arg;
remoteCall.getArgs()[n] = getProxyFromRemoteInstance(remoteInstance);
}
}
}
Thread delegator = new Thread(new Runnable() {