class HostValidatorService implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(final ContextRefreshedEvent event) {
        initializeAllowedHosts();
    }

}