java-based config