IoC implementation with xml configs and code configuration