public void run() {
//Configure and Invoke the Publisher
Logger.info(PublishThread.class, "Started bundle publish process");
PushPublishLogger.log(PublishThread.class, "Started bundle publish process", bundleName);
PublisherConfig pconf = new PublisherConfig();
BundlePublisher bundlePublisher = new BundlePublisher();
pconf.setId(bundleName);
pconf.setEndpoint(endpointId);
pconf.setGroupId(groupId);
try {
bundlePublisher.init(pconf);
bundlePublisher.process(null);
} catch (DotPublishingException e) {
Logger.error("Failed to publish because an error occurred: ", e.getMessage());