erichegt/vraptor — comment on commit e10383f309e2c47d3143476c70b29fc2a8a15ec9
File: vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/xstream/XStreamSerializer.java line 139
By lucascs:

You could use the elementTypes variable.

This class was refactored, so you will have to use something like

Set> types = serializee.getElementTypes();

and

Class rootClass = serializee.getRootClass();

also, this code should be placed after the setRoot() method call.