s="Source Java"><pre>package com.thoughtworks.xstream.examples;

public class Person {

        private String name;

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String toString() {
                return getName();
        }
}</pre></div><p>In this case we can simplify our Converter to</p>
<div class="Source Java"><pre>package com.thoughtworks.xstream.examples;

import com.th