    this.gender = 'm';
        }

        public void setGenderFemale() {
                this.gender = 'f';
        }

}</pre></div><p>While XStream is capable of converting this class without any problem, we write our own custom converter
just for demonstration. This time we want to reuse our already written converters for the Person and the Calendar and add an
own attribute for the gender. The <code>canConvert</code> method is plain simple. We convert no derived classes this time,
since they might have a