Java interop and list processing