Revert "Revert "Revert "Revert "add java ObjectToobjs""""

This reverts commit ed9907d03cc5db0b67445c4eaba02f4a21ba7301.