Java Spring like application context