if (configuration.getMessageProcessors().containsKey(processorName)) {
MessageProcessor processor =
configuration.getMessageProcessors().get(processorName);
if (processor instanceof ScheduledMessageForwardingProcessor) {
MessageForwardingProcessorView view =
((ScheduledMessageForwardingProcessor) processor).getView();
active = view.isActive();
} else if (processor instanceof SamplingProcessor) {
SamplingProcessorView view =
((SamplingProcessor) processor).getView();
active = view.isActive();
}
}
} catch (Exception e) {
log.error("Error While accessing MessageProcessor view ");