InputStream pin = socket.getInputStream();
OutputStream pout = socket.getOutputStream();
out = new RmiObjectOutputStream(pout);
this.channel = new RmiChannel(this, executor, new Class[]{Remote.class});
this.channel.exportObject(SlaveInterface.class, this);
synchronized(out) {
out.writeUnshared(this);
out.reset();