Use java based config