*
* @since 1.4
*/
public XStreamDriver(HierarchicalStreamDriver driver, String desc) {
this.xstream = new XStream(driver);
this.xstream.registerConverter(new JavaBeanConverter(this.xstream.getMapper()) {
public boolean canConvert(Class type) {
return type == OneBean.class || type == FiveBean.class;
}