ObjectInputStream in = conn.getObjectInputStream();
ObjectInputStream in = conn.startObjectInputStream();
private static void incomingMessageCall(UnicastConnection conn) throws IOException {	ObjectInputStream in = conn.getObjectInputStream();	ObjID objid = ObjID.read(in);	int method = in.readInt();	long hash = in.readLong();//System.out.println("ObjID: " + objid + ", method: " + method + ", hash: " + hash);	// Use the objid to locate the relevant UnicastServerRef	UnicastServerRef uref = (UnicastServerRef)objects.get(objid);	Object returnval;	int returncode = RETURN_ACK;	// returnval is from Method.invoke(), so we must check the return class to see	// if it's primitive type	Class returncls = null;	if (uref != null) {		try {			// Dispatch the call to it.			returnval = uref.incomingMessageCall(conn, method, hash);			returncls = uref.getMethodReturnType(method, hash);		}		catch (Exception e) {			returnval = e;			returncode = RETURN_NACK;		}	}	else {		returnval = new NoSuchObjectException("");		returncode = RETURN_NACK;	}	conn.getDataOutputStream().writeByte(MESSAGE_CALL_ACK);	ObjectOutputStream out = conn.getObjectOutputStream();	out.writeByte(returncode);	(new UID()).write(out);	if(returnval != null && returncls != null)	    ((RMIObjectOutputStream)out).writeValue(returnval, returncls);	else if (!(returnval instanceof RMIVoidValue))	    out.writeObject(returnval);	out.flush();}