Just call applicationContext.getBean instead...