try {
CNSEndpointPublishJob endpointPublishJob = (CMBProperties.getInstance().isCNSUseSubInfoCache()) ? CNSCachedEndpointPublishJob.parseInstance(msg.getBody()) : CNSEndpointPublishJob.parseInstance(msg.getBody());
logger.debug("endpoint_publish_job=" + endpointPublishJob.toString());
User pubUser =(new UserAuthModule()).getUserByUserId(endpointPublishJob.getMessage().getUserId());
List<? extends CNSEndpointSubscriptionInfo> subs = endpointPublishJob.getSubInfos();
CNSWorkerMonitor.getInstance().registerSendsRemaining(endpointPublishJob.getMessage().getMessageId(), subs.size());
AtomicInteger endpointPublishJobCount = new AtomicInteger(subs.size());