Source:
<code>public void activate(String processorName) throws AxisFault { SynapseConfiguration configuration = getSynapseConfiguration(); try { assert configuration != null; if (configuration.getMessageProcessors().containsKey(processorName)) { MessageProcessor processor = configuration.getMessageProcessors().get(processorName); CAppArtifactDataService cAppArtifactDataService = ConfigHolder.getInstance(). getcAppArtifactDataService(); if (processor instanceof ScheduledMessageForwardingProcessor) { MessageForwardingProcessorView view = ((ScheduledMessageForwardingProcessor) processor).getView(); if (!view.isActive()) { view.activate(); <START> if (!cAppArtifactDataService.isArtifactDeployedFromCApp(getTenantId(), ServiceBusConstants.MESSAGE_PROCESSOR_TYPE <END> + File.separator + processorName)) { getMediationPersistenceManager() .saveItem(processor.getName(), ServiceBusConstants.ITEM_TYPE_MESSAGE_PROCESSOR); } } else { log.warn("Scheduled Message Forwarding Processor is already active"); } } else if (processor instanceof SamplingProcessor) { SamplingProcessorView view = ((SamplingProcessor) processor).getView(); if (!view.isActive()) { view.activate(); if (!cAppArtifactDataService.isArtifactDeployedFromCApp(getTenantId(), ServiceBusConstants.MESSAGE_PROCESSOR_TYPE + File.separator + processorName)) { getMediationPersistenceManager() .saveItem(processor.getName(), ServiceBusConstants.ITEM_TYPE_MESSAGE_PROCESSOR); } } else { log.warn("Sampling Processor is already active"); } } } } catch (Exception e) { log.error("Error While accessing MessageProcessor view "); throw new AxisFault(e.getMessage()); } }</code><technical_language>'ServiceBusConstants.MESSAGE_PROCESSOR_TYPE - + File.separator + processorName' is in places. a variable</technical_language>

Target:
public void activate(String processorName) throws AxisFault { SynapseConfiguration configuration = getSynapseConfiguration(); try { assert configuration != null; if (configuration.getMessageProcessors().containsKey(processorName)) { MessageProcessor processor = configuration.getMessageProcessors().get(processorName); CAppArtifactDataService cAppArtifactDataService = ConfigHolder.getInstance(). getcAppArtifactDataService(); String artifactName = getArtifactName(artifactType, processorName); if (processor instanceof ScheduledMessageForwardingProcessor) { MessageForwardingProcessorView view = ((ScheduledMessageForwardingProcessor) processor).getView(); if (!view.isActive()) { view.activate(); if (!cAppArtifactDataService.isArtifactDeployedFromCApp(getTenantId(), artifactName)) { getMediationPersistenceManager() .saveItem(processor.getName(), ServiceBusConstants.ITEM_TYPE_MESSAGE_PROCESSOR); } } else { log.warn("Scheduled Message Forwarding Processor is already active"); } } else if (processor instanceof SamplingProcessor) { SamplingProcessorView view = ((SamplingProcessor) processor).getView(); if (!view.isActive()) { view.activate(); if (!cAppArtifactDataService.isArtifactDeployedFromCApp(getTenantId(), artifactName)) { getMediationPersistenceManager() .saveItem(processor.getName(), ServiceBusConstants.ITEM_TYPE_MESSAGE_PROCESSOR); } } else { log.warn("Sampling Processor is already active"); } } } } catch (Exception e) { log.error("Error While accessing MessageProcessor view "); throw new AxisFault(e.getMessage()); } }