add java interface