java object copyfrom