java interop + idiomatization