java based configuration