Adjusting object ID on the stub side according to the Java stubs.