replaced spring xml config with java based configuration