class SequenceHandlingToggle implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(final ContextRefreshedEvent event) {
        if (configurationAccess.getProperties().getSequenceHandlingUsage() == SequenceHandlingState.ON) {
            switchOn();
        } else {
            switchOff();
        }
    }

}