I know that I can load application context from xml file like this:
ApplicationContext app = new ClassPathXmlApplicationContext("META-INF/applicationContext.xml");
But in my case it is irrelevent.
inside the applicationContext.xml
I use profiles.
How can I load context according the profile ?