question: public static Object read ( Reader r ) throws Exception { Class < ? > xstreamClass ; java . lang . reflect . Constructor < ? > constructor ; Object xstream ; Class < ? > [ ] deSerializeArgsClasses = new Class [ 1 ] ; Object [ ] deSerializeArgs = new Object [ 1 ] ; java . lang . reflect . Method methodDeSerialize ; Object result ; xstreamClass = Class . forName ( "com.thoughtworks.xstream.XStream" ) ; constructor = xstreamClass . getConstructor ( ) ; xstream = constructor . newInstance ( ) ; deSerializeArgsClasses [ 0 ] = Reader . class ; deSerializeArgs [ 0 ] = r ; methodDeSerialize = xstreamClass . getMethod ( "fromXML" , deSerializeArgsClasses ) ; try { result = methodDeSerialize . invoke ( xstream , deSerializeArgs ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; result = null ; } return result ; }
target:  reads the XML-serialized object from the given Reader