Modified the sample to remove xml based Spring Configuration