EPI java implementation