add java based configuration