question: private static Object cloneSerializableObject ( Object o ) throws IOException , ClassNotFoundException { ByteArrayOutputStream b = new ByteArrayOutputStream ( ) ; ObjectOutputStream out = new ObjectOutputStream ( b ) ; out . writeObject ( o ) ; out . flush ( ) ; out . close ( ) ; ByteArrayInputStream bi = new ByteArrayInputStream ( b . toByteArray ( ) ) ; ObjectInputStream in = new ObjectInputStream ( bi ) ; return in . readObject ( ) ; }
target:  This methods provide cloning for serializable objects. Mail Attributes are Serializable but not Clonable so we need a deep copy