You should implement Cloneable, override the clone() method and then
call that. You don't need to know the type of the object since the
clone() method is defined in the Object class. Take a look at
java.lang.Object's clone() method for more information.