// this should be a ContainerMessage
final Object cm = deserializeContainerMessage((byte[]) obj);
if (cm == null)
throw new IOException(
Messages.XMPPContainer_EXCEPTION_DESERIALIZED_OBJECT_NULL);
final ContainerMessage contMessage = (ContainerMessage) cm;
final IChatRoomContainer chat = chatRoomManager
.findReceiverChatRoom(contMessage.getToContainerID());
if (chat != null && chat instanceof XMPPChatRoomContainer) {
final XMPPChatRoomContainer cont = (XMPPChatRoomContainer) chat;
cont.handleContainerMessage(contMessage);
return;
}
final Object data = contMessage.getData();
if (data instanceof ContainerMessage.CreateMessage) {
handleCreateMessage(contMessage);
} else if (data instanceof ContainerMessage.CreateResponseMessage) {
handleCreateResponseMessage(contMessage);
} else if (data instanceof ContainerMessage.SharedObjectMessage) {