[5553333] Updated java interop on to_java method.