code: public void onApplicationEvent(ContextRefreshedEvent event) {
  
  		if (event.getApplicationContext().equals(context) && targetSource != null) {
  			targetSource.freeze();
  		}
  	}
docs: /*
  (non-Javadoc)
  @see org.springframework.context.ApplicationListener#onApplicationEvent(org.springframework.context.ApplicationEvent)