Deeply copy by using serializable.