Add java based configuration