protected < T > T roundtrip ( T object , ClassLoader classLoader ) { A data = serialize ( object ) ; @ SuppressWarnings ( "unchecked" ) T copy = ( T ) deserialize ( data , classLoader ) ; return copy ; }
Performs the serialization and deserialization returning the copied object .