input = new ObjectInputStream(socket.getInputStream());
while (socket.isConnected()) {
Object objFromStream = input.readUnshared();
IRemoteMessage remoteMessage = filter.readObject(objFromStream);
if (remoteMessage instanceof RemoteCall) {
final RemoteCall remoteCall = (RemoteCall) remoteMessage;
if (remoteCall.getArgs() != null) {