@Override
public void subscriptionChanged(Subscription sub, PubSubServer server) {
// handles this subscription change event for our model
if (this.subTable.containsKey(sub)){
// update old bconsumer
BConsumer consumer = this.subTable.get(sub);
consumer.replaceSubscription(sub);
// manually call the handler method
modelChanged(this.bModel);
} else{
// new bconsumer
BConsumer consumer = new BConsumer(sub);
consumer.setConnectionInfo(server.getMessageService().getConnectionInfo());
this.bModel.addBConsumer(consumer);
this.subTable.put(sub, consumer);
}
// removes stream if the subscription is not new