Parameter param_hidden = service.getParameter("hiddenService");
if (param_admin == null && param_hidden == null) {
EventingConfigData eventingConfigData = PublisherUtils.getActivityPublisherAdmin()
.getEventingConfigData();
if (eventingConfigData != null && eventingConfigData.eventingEnabled()) {
if (eventingConfigData.messageLookupEnabled()) {
// set a counter property to support messagelookup
Object value = messageContext.getConfigurationContext()
.getProperty(ActivityPublisherConstants.BAM_XPATH_COUNT);
if (value != null) {
if (value instanceof org.wso2.carbon.bam.data.publisher.activity.service.Counter) {