class SequenceHandlingToggle implements ApplicationListener<ContextRefreshedEvent> {

    public void switchOff() {
        sequenceManager.dropAllSequences();
        sequenceRequestHandlingProcessor.setEnabled(false);
    }

}