Use CustomApplication for Singleton objects to initialize ApplicationContext