public void addSubscriptionToStore(final String topic,final String clientId){
  final ClientTopicCouple subscription=new ClientTopicCouple(clientId,topic);
  if (!topics.contains(topic)) {
    logger.debug("Added subscription " + topic + " ("+ clientId+ ") to store");
    subscriptionsStore.add(subscription);
    topics.add(topic);
  }
}

public void addSubscriptionToStore ( final String topic , final String clientId ) { final ClientTopicCouple subscription = new ClientTopicCouple ( clientId , topic ) ; if ( ! topics . contains ( topic ) ) { logger . debug ( "Added subscription " + topic + " (" + clientId + ") to store" ) ; subscriptionsStore . add ( subscription ) ; topics . add ( topic ) ; } }
adds the given topic to the subscription store - used for topic to subscription matching .
