Fix java interface template