java scala interop closure