sample fix engine using java