Creating the application context from configuration