session_state.received_message_ids.add(i.shortValue());
}
}
if (session_pb.hasSubscriptions()) {
for (TopicPB.Getter sub : session_pb.getSubscriptionsList()) {
SimpleAddress address = SimpleAddress.apply(sub.getAddress().toString());
Topic topic = new Topic(sub.getName(), QoS.values()[sub.getQos()]);
session_state.subscriptions.put(sub.getName(), new Tuple2<Topic, BindAddress>(topic, address));
}
}