Fix to failing application startup because of missing beans and duplicate beans in the spring context.