class ProxyModeToggle implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(final ContextRefreshedEvent event) {
        PropertyDto properties = configurationAccess.getProperties();
        OperationMode operationMode = properties.getOperationMode();
        if (operationMode == OperationMode.PROXY) {
            switchProxyModeOn();
        }

    }

}