Changed from xml based config to java config.