trying to use java based config