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 ");