// if a publisher class name has been defined to override the default WSM publisher, use it
if (context.getPublisherImpl() != null) {
publisher = PublisherFactory.createSomePublisher(context.getPublisherImpl(), context);
} else {
if (context.getTopic() == null) {
publisher = new WSMPublisher(100, context.isEnableAsyncPublishing(), context.getBrokerEpr()
.getAddress(), false);
} else {
publisher = new WSMPublisher(100, context.isEnableAsyncPublishing(), context.getBrokerEpr()
.getAddress(), context.getTopic());
}
}
publishermap.put(context.getBrokerEpr(), publisher);
}