Make java conversions optional.