add ApplicationContext example classes
change xml configuration to code base configuration