Receiver endpoint = temporaryQueues.get(cd);
if (endpoint == null) {
throw new ConnectionException(Connection.TPEBADDESC,
"Session does not exist: " + cd);
}
Message message = endpoint.receive(flags);
temporaryQueues.remove(cd);
Buffer buffer = null;
if (message.type != null && !message.type.equals("")) {
buffer = tpalloc(message.type, message.subtype, message.len);
buffer.deserialize(message.data);