Replace spring application context loading with programmatic loading