Adding Spring container, use Spring IOC to maintain managed beans.