protected SubscriptionManager instantiateSubscriptionManager(TopicManager tm, PersistenceManager pm) {
if (conf.isStandalone()) {
return new InMemorySubscriptionManager(tm, pm, conf, scheduler);
} else {
return new ZkSubscriptionManager(zk, tm, pm, conf, scheduler);
}
}