Ops, I totally forgot about this. You can wrap both Java calls in a `doto` I guess.