public final void received(Connection conn, Object obj) {
try {
if (obj instanceof MessageReadyToReceive) {
// When we are sending object we wait for ready message before
// sending other
IUniqueObject reply = messageReadyReceived(conn,
(MessageReadyToReceive) obj);
sendTCPMessage(conn, reply);
} else if (obj instanceof MessageCreateValue) {
MessageCreateValue msg = (MessageCreateValue) obj;
IUniqueObject reply = messageObjectReceived(msg);
sendTCPMessage(conn, reply);
} else if (obj instanceof MessageSplitEnd) {
messageObjectEndReceived((MessageSplitEnd) obj);
} else if (obj instanceof RequestObject) {
UniqueID id = ((RequestObject) obj).getGuid();