for (Tuple2<Topic, BindAddress> entry : subscriptions.values()) {
Topic topic = entry._1();
BindAddress address = entry._2();
TopicPB.Bean topic_pb = new TopicPB.Bean();
topic_pb.setName(topic.name());
topic_pb.setQos(topic.qos().ordinal());
topic_pb.setAddress(new UTF8Buffer(address.toString()));
session_pb.addSubscriptions(topic_pb);
}
uow.put(session_key, session_pb.freeze().toUnframedBuffer());