Transport/ Java API: Fix result transport and add api methods