class RefreshEventListener implements ApplicationListener<ApplicationEvent> {

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        if (isRefreshEvent(event)) {
            refresh();
        }
    }

}