Java based config