Copy java objects